Package javax.measure.unit
Class UnitFormat.ASCIIFormat
java.lang.Object
java.text.Format
javax.measure.unit.UnitFormat
javax.measure.unit.UnitFormat.DefaultFormat
javax.measure.unit.UnitFormat.ASCIIFormat
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- UnitFormat
This class represents the ASCIIFormat format.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.measure.unit.UnitFormat
UnitFormat.ASCIIFormat, UnitFormat.DefaultFormat
Nested classes/interfaces inherited from class java.text.Format
Format.Field
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformat
(Unit<?> unit, Appendable appendable) Formats the specified unit.Unit<?>
Methods inherited from class javax.measure.unit.UnitFormat.DefaultFormat
alias, isValidIdentifier, label, parseProductUnit, parseSingleUnit
Methods inherited from class javax.measure.unit.UnitFormat
format, getInstance, getInstance, getUCUMInstance, parseObject
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
-
Constructor Details
-
ASCIIFormat
protected ASCIIFormat()
-
-
Method Details
-
nameFor
- Overrides:
nameFor
in classUnitFormat.DefaultFormat
-
unitFor
- Overrides:
unitFor
in classUnitFormat.DefaultFormat
-
format
Description copied from class:UnitFormat
Formats the specified unit.- Overrides:
format
in classUnitFormat.DefaultFormat
- Parameters:
unit
- the unit to format.appendable
- the appendable destination.- Throws:
IOException
- if an error occurs.
-