protected static final class SimpleUnitFormat.ASCIIFormat extends SimpleUnitFormat.DefaultFormat
SimpleUnitFormat.ASCIIFormat, SimpleUnitFormat.DefaultFormat, SimpleUnitFormat.Flavor| Modifier | Constructor and Description |
|---|---|
protected |
ASCIIFormat() |
| Modifier and Type | Method and Description |
|---|---|
Appendable |
format(javax.measure.Unit<?> unit,
Appendable appendable)
Formats the specified unit.
|
boolean |
isValidIdentifier(String name)
Indicates if the specified name can be used as unit identifier.
|
protected String |
nameFor(javax.measure.Unit<?> unit) |
protected javax.measure.Unit<?> |
unitFor(String name) |
alias, getSymbols, label, parse, parse, parse, parseProductUnit, parseSingleUnit, prefixForformat, getInstance, getInstance, isAllASCII, isLocaleSensitive, parseObjectformatprotected ASCIIFormat()
protected String nameFor(javax.measure.Unit<?> unit)
nameFor in class SimpleUnitFormat.DefaultFormatprotected javax.measure.Unit<?> unitFor(String name)
unitFor in class SimpleUnitFormat.DefaultFormatpublic Appendable format(javax.measure.Unit<?> unit, Appendable appendable) throws 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.IOException - if an error occurs.public boolean isValidIdentifier(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.Copyright © 2005–2017 Units of Measurement project. All rights reserved.