javax.measure.unit
protected static class UnitFormat.ASCIIFormat extends UnitFormat.DefaultFormat
UnitFormat.ASCIIFormat, UnitFormat.DefaultFormat
Modifier | Constructor and Description |
---|---|
protected |
UnitFormat.ASCIIFormat() |
Modifier and Type | Method and Description |
---|---|
java.lang.Appendable |
format(Unit<?> unit,
java.lang.Appendable appendable)
Formats the specified unit.
|
java.lang.String |
nameFor(Unit<?> unit) |
Unit<?> |
unitFor(java.lang.String name) |
alias, isValidIdentifier, label, parseProductUnit, parseSingleUnit
format, getInstance, getInstance, getUCUMInstance, parseObject
public java.lang.String nameFor(Unit<?> unit)
nameFor
in class UnitFormat.DefaultFormat
public Unit<?> unitFor(java.lang.String name)
unitFor
in class UnitFormat.DefaultFormat
public java.lang.Appendable format(Unit<?> unit, java.lang.Appendable appendable) throws java.io.IOException
UnitFormat
format
in class UnitFormat.DefaultFormat
unit
- the unit to format.appendable
- the appendable destination.java.io.IOException
- if an error occurs.