protected static class UnitFormat.ASCIIFormat extends UnitFormat.DefaultFormat
UnitFormat.ASCIIFormat, UnitFormat.DefaultFormat
Format.Field
Modifier | Constructor and Description |
---|---|
protected |
UnitFormat.ASCIIFormat() |
Modifier and Type | Method and Description |
---|---|
Appendable |
format(Unit<?> unit,
Appendable appendable)
Formats the specified unit.
|
String |
nameFor(Unit<?> unit) |
Unit<?> |
unitFor(String name) |
alias, isValidIdentifier, label, parseProductUnit, parseSingleUnit
format, getInstance, getInstance, getUCUMInstance, parseObject
clone, format, formatToCharacterIterator, parseObject
public String nameFor(Unit<?> unit)
nameFor
in class UnitFormat.DefaultFormat
public Unit<?> unitFor(String name)
unitFor
in class UnitFormat.DefaultFormat
public Appendable format(Unit<?> unit, Appendable appendable) throws IOException
UnitFormat
format
in class UnitFormat.DefaultFormat
unit
- the unit to format.appendable
- the appendable destination.IOException
- if an error occurs.Copyright © 2012. All Rights Reserved.