|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.text.Format
java.text.NumberFormat
org.lsmp.djep.xjep.BaseFormat
public class BaseFormat
A Number format object which prints results in a specified base. TODO Do something with the FieldPosition arguments.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.NumberFormat |
|---|
java.text.NumberFormat.Field |
| Field Summary |
|---|
| Fields inherited from class java.text.NumberFormat |
|---|
FRACTION_FIELD, INTEGER_FIELD |
| Constructor Summary | |
|---|---|
BaseFormat(int base)
Create a new base format object |
|
BaseFormat(int base,
java.lang.String prefix)
Create a new base format object |
|
| Method Summary | |
|---|---|
java.lang.StringBuffer |
format(double val,
java.lang.StringBuffer sb,
java.text.FieldPosition fp)
Format a double value in specific base. |
java.lang.StringBuffer |
format(long val,
java.lang.StringBuffer sb,
java.text.FieldPosition fp)
Format a double value in specific base. |
java.lang.Number |
parse(java.lang.String arg0,
java.text.ParsePosition arg1)
Not implemented |
| 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 |
| Constructor Detail |
|---|
public BaseFormat(int base)
base - the base of number to use
java.lang.IllegalArgumentException - if base is < 2 or > 36
public BaseFormat(int base,
java.lang.String prefix)
base - the base of number to useprefix - prefix to appear before number
java.lang.IllegalArgumentException - if base is < 2 or > 36| Method Detail |
|---|
public java.lang.StringBuffer format(double val,
java.lang.StringBuffer sb,
java.text.FieldPosition fp)
format in class java.text.NumberFormatval - the number to formatsb - the buffer to append tofp - not used
public java.lang.StringBuffer format(long val,
java.lang.StringBuffer sb,
java.text.FieldPosition fp)
format in class java.text.NumberFormatval - the number to formatsb - the buffer to append tofp - not used
public java.lang.Number parse(java.lang.String arg0,
java.text.ParsePosition arg1)
parse in class java.text.NumberFormat
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||