protected static final class SimpleUnitFormat.ASCIIFormat extends SimpleUnitFormat.DefaultFormat
SimpleUnitFormat.ASCIIFormat, SimpleUnitFormat.DefaultFormat, SimpleUnitFormat.Flavor
logger
Modifier | Constructor and Description |
---|---|
protected |
SimpleUnitFormat.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, label, parse, parse, parseProductUnit, parseSingleUnit, prefixFor
format, getInstance, getInstance, isAllASCII, isLocaleSensitive, parseObject
format
protected SimpleUnitFormat.ASCIIFormat()
protected String nameFor(javax.measure.Unit<?> unit)
nameFor
in class SimpleUnitFormat.DefaultFormat
protected javax.measure.Unit<?> unitFor(String name)
unitFor
in class SimpleUnitFormat.DefaultFormat
public Appendable format(javax.measure.Unit<?> unit, Appendable appendable) throws IOException
SimpleUnitFormat
format
in interface javax.measure.format.UnitFormat
format
in class SimpleUnitFormat.DefaultFormat
unit
- the unit to format.appendable
- the appendable destination.appendable
, with formatted text appended.IOException
- if an error occurs.public boolean isValidIdentifier(String name)
SimpleUnitFormat
isValidIdentifier
in class SimpleUnitFormat.DefaultFormat
name
- 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 Jean-Marie Dautelle, Werner Keil, V2COM. All rights reserved.