gnu.text
Class RomanIntegerFormat

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

public class RomanIntegerFormat
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
 boolean oldStyle
           
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
RomanIntegerFormat()
           
RomanIntegerFormat(boolean oldStyle)
           
 
Method Summary
 java.lang.StringBuffer format(double num, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
           
static java.lang.String format(int num)
           
static java.lang.String format(int num, boolean oldStyle)
           
 java.lang.StringBuffer format(long num, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
           
static RomanIntegerFormat getInstance(boolean oldStyle)
           
 java.lang.Number parse(java.lang.String text, java.text.ParsePosition status)
           
 
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

oldStyle

public boolean oldStyle
Constructor Detail

RomanIntegerFormat

public RomanIntegerFormat(boolean oldStyle)

RomanIntegerFormat

public RomanIntegerFormat()
Method Detail

getInstance

public static RomanIntegerFormat getInstance(boolean oldStyle)

format

public static java.lang.String format(int num,
                                      boolean oldStyle)

format

public static java.lang.String format(int num)

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