protected static final class SimpleUnitFormat.ASCIIFormat extends SimpleUnitFormat.DefaultFormat
SimpleUnitFormat.ASCIIFormat, SimpleUnitFormat.DefaultFormat, SimpleUnitFormat.Flavor_nameToUnit, _unitToName| Modifier | Constructor and Description |
|---|---|
protected |
ASCIIFormat() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Appendable |
format(javax.measure.Unit<?> unit,
java.lang.Appendable appendable)
Formats the specified unit.
|
boolean |
isValidIdentifier(java.lang.String name)
Indicates if the specified name can be used as unit identifier.
|
java.lang.String |
nameFor(javax.measure.Unit<?> unit) |
javax.measure.Unit<?> |
unitFor(java.lang.String name) |
alias, getSymbols, isUnitIdentifierPart, label, parse, parse, parse, parseProductUnit, parseSingleUnitformat, getInstance, getInstance, isAllASCII, isLocaleSensitive, parseObjectformat, formatpublic java.lang.String nameFor(javax.measure.Unit<?> unit)
nameFor in class SimpleUnitFormat.DefaultFormatpublic javax.measure.Unit<?> unitFor(java.lang.String name)
unitFor in class SimpleUnitFormat.DefaultFormatpublic java.lang.Appendable format(javax.measure.Unit<?> unit,
java.lang.Appendable appendable)
throws java.io.IOException
SimpleUnitFormatformat in interface javax.measure.format.UnitFormatformat in class SimpleUnitFormat.DefaultFormatunit - the unit to format.appendable - the appendable destination.appendable, with formatted text appended.java.io.IOException - if an error occurs.public boolean isValidIdentifier(java.lang.String name)
SimpleUnitFormatisValidIdentifier in class SimpleUnitFormat.DefaultFormatname - the identifier to be tested.true if the name specified can be used as label or alias for this format;false otherwise.