public class ExponentialFormat
extends java.text.Format
Modifier and Type | Field and Description |
---|---|
int |
expDigits
Number of digits to show in the exponent.
|
char |
exponentChar |
boolean |
exponentShowSign
Display sign of exponent even when it is non-negative.
|
int |
fracDigits
Number of fractional digits to show.
|
boolean |
general |
int |
intDigits
Number of digits to show in the integer part of the result.
|
char |
overflowChar |
char |
padChar |
boolean |
showPlus
True if '+' should be printed for non-negative number.
|
char |
style
'L': Common Lisp style; 'P' C/Java printf-style.
|
int |
width |
Constructor and Description |
---|
ExponentialFormat() |
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
format(double value,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos) |
java.lang.StringBuffer |
format(float value,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos) |
java.lang.StringBuffer |
format(long num,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos) |
java.lang.StringBuffer |
format(java.lang.Object num,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos) |
java.lang.Number |
parse(java.lang.String text,
java.text.ParsePosition status) |
java.lang.Object |
parseObject(java.lang.String text,
java.text.ParsePosition status) |
public int fracDigits
public int intDigits
public int expDigits
public char overflowChar
public char padChar
public char exponentChar
public boolean exponentShowSign
public boolean showPlus
public boolean general
public char style
public int width
public java.lang.StringBuffer format(float value, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
public java.lang.StringBuffer format(double value, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
public java.lang.StringBuffer format(long num, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
public java.lang.StringBuffer format(java.lang.Object num, java.lang.StringBuffer sbuf, java.text.FieldPosition fpos)
format
in class java.text.Format
public java.lang.Number parse(java.lang.String text, java.text.ParsePosition status)
public java.lang.Object parseObject(java.lang.String text, java.text.ParsePosition status)
parseObject
in class java.text.Format