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, parseSingleUnitformat, getInstance, getInstance, getUCUMInstance, parseObjectpublic java.lang.String nameFor(Unit<?> unit)
nameFor in class UnitFormat.DefaultFormatpublic Unit<?> unitFor(java.lang.String name)
unitFor in class UnitFormat.DefaultFormatpublic java.lang.Appendable format(Unit<?> unit, java.lang.Appendable appendable) throws java.io.IOException
UnitFormatformat in class UnitFormat.DefaultFormatunit - the unit to format.appendable - the appendable destination.java.io.IOException - if an error occurs.