gnu.text
Class EnglishIntegerFormat

java.lang.Object
  extended by java.text.Format
      extended by java.text.NumberFormat
          extended by gnu.text.EnglishIntegerFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class EnglishIntegerFormat
extends java.text.NumberFormat

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.NumberFormat
java.text.NumberFormat.Field
 
Field Summary
static java.lang.String[] ones
           
static java.lang.String[] onesth
           
 boolean ordinal
           
static java.lang.String[] power1000s
           
static java.lang.String[] tens
           
static java.lang.String[] tensth
           
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
EnglishIntegerFormat(boolean ordinal)
           
 
Method Summary
 java.lang.StringBuffer format(double num, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
           
 java.lang.StringBuffer format(long num, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
           
static EnglishIntegerFormat getInstance(boolean ordinal)
           
 java.lang.Number parse(java.lang.String text, java.text.ParsePosition status)
           
 void writeBoolean(boolean value, Consumer out)
           
 void writeInt(int value, Consumer out)
           
 void writeLong(long value, Consumer out)
           
 void writeObject(java.lang.Object value, Consumer out)
           
 
Methods inherited from class java.text.NumberFormat
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly
 
Methods inherited from class java.text.Format
format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ordinal

public boolean ordinal

ones

public static final java.lang.String[] ones

onesth

public static final java.lang.String[] onesth

tens

public static final java.lang.String[] tens

tensth

public static final java.lang.String[] tensth

power1000s

public static final java.lang.String[] power1000s
Constructor Detail

EnglishIntegerFormat

public EnglishIntegerFormat(boolean ordinal)
Method Detail

getInstance

public static EnglishIntegerFormat getInstance(boolean ordinal)

writeInt

public void writeInt(int value,
                     Consumer out)

writeLong

public void writeLong(long value,
                      Consumer out)

writeObject

public void writeObject(java.lang.Object value,
                        Consumer out)

writeBoolean

public void writeBoolean(boolean value,
                         Consumer out)

format

public java.lang.StringBuffer format(long num,
                                     java.lang.StringBuffer sbuf,
                                     java.text.FieldPosition fpos)
Specified by:
format in class java.text.NumberFormat

format

public java.lang.StringBuffer format(double num,
                                     java.lang.StringBuffer sbuf,
                                     java.text.FieldPosition fpos)
Specified by:
format in class java.text.NumberFormat

parse

public java.lang.Number parse(java.lang.String text,
                              java.text.ParsePosition status)
Specified by:
parse in class java.text.NumberFormat