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:
- java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- UnitFormat
protected static class UnitFormat.ASCIIFormat
- extends UnitFormat.DefaultFormat
This class represents the ASCIIFormat format.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.text.Format |
java.text.Format.Field |
Method Summary |
java.lang.Appendable |
format(Unit<?> unit,
java.lang.Appendable appendable)
Formats the specified unit. |
java.lang.String |
nameFor(Unit<?> unit)
|
Unit<?> |
unitFor(java.lang.String name)
|
Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnitFormat.ASCIIFormat
protected UnitFormat.ASCIIFormat()
nameFor
public java.lang.String nameFor(Unit<?> unit)
- Overrides:
nameFor
in class UnitFormat.DefaultFormat
unitFor
public Unit<?> unitFor(java.lang.String name)
- Overrides:
unitFor
in class UnitFormat.DefaultFormat
format
public java.lang.Appendable format(Unit<?> unit,
java.lang.Appendable appendable)
throws java.io.IOException
- Description copied from class:
UnitFormat
- Formats the specified unit.
- Overrides:
format
in class UnitFormat.DefaultFormat
- Parameters:
unit
- the unit to format.appendable
- the appendable destination.
- Throws:
java.io.IOException
- if an error occurs.
Copyright © 2010. All Rights Reserved.