JScience v4.3

javax.measure.unit
Class UnitFormat.ASCIIFormat

java.lang.Object
  extended by java.text.Format
      extended by javax.measure.unit.UnitFormat
          extended by javax.measure.unit.UnitFormat.DefaultFormat
              extended by 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 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
java.text.Format.Field
 
Constructor Summary
protected UnitFormat.ASCIIFormat()
           
 
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 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitFormat.ASCIIFormat

protected UnitFormat.ASCIIFormat()
Method Detail

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.

JScience v4.3

Copyright © 2006 JScience.