| Modifier and Type | Field and Description |
|---|---|
| protected final String | format
The original specified format. |
| protected final Locale |
| Access | Constructor and Description |
|---|---|
| public | CellFormatter(String
The format. format)Creates a new formatter object, storing the format in |
| public | CellFormatter(Locale
The locale. locale, String The format. format)Creates a new formatter object, storing the format in |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public abstract void | formatValue(StringBuffer
The buffer to append to. toAppendTo, Object The value to format. value)Format a value according the format string. |
| pack-priv static String | |
| public String | Returns: The value, formatted.The value to format. value)Formats the value in the most basic way, returning the resulting string. |
| public abstract void | simpleValue(StringBuffer
The buffer to append to. toAppendTo, Object The value to format. value)Format a value according to the type, in the most basic way. |
| format | back to summary |
|---|---|
| protected final String format The original specified format. | |
| locale | back to summary |
|---|---|
| protected final Locale locale | |
| CellFormatter | back to summary |
|---|---|
| public CellFormatter(String format) Creates a new formatter object, storing the format in
| |
| CellFormatter | back to summary |
|---|---|
| public CellFormatter(Locale locale, String format) Creates a new formatter object, storing the format in | |
| format | back to summary |
|---|---|
| public String format(Object value) Formats the value, returning the resulting string. | |
| formatValue | back to summary |
|---|---|
| public abstract void formatValue(StringBuffer toAppendTo, Object value) Format a value according the format string. Note this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself.
| |
| quote | back to summary |
|---|---|
| pack-priv static String quote(String str) Returns the input string, surrounded by quotes. | |
| simpleFormat | back to summary |
|---|---|
| public String simpleFormat(Object value) Formats the value in the most basic way, returning the resulting string. | |
| simpleValue | back to summary |
|---|---|
| public abstract void simpleValue(StringBuffer toAppendTo, Object value) Format a value according to the type, in the most basic way. Note this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself.
| |