public abstract class CellFormatter
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
protected java.lang.String | 
format
The original specified format. 
 | 
protected java.util.Locale | 
locale  | 
| Constructor and Description | 
|---|
CellFormatter(java.util.Locale locale,
             java.lang.String format)
Creates a new formatter object, storing the format in  
format. | 
CellFormatter(java.lang.String format)
Creates a new formatter object, storing the format in  
format. | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
format(java.lang.Object value)
Formats the value, returning the resulting string. 
 | 
abstract void | 
formatValue(java.lang.StringBuffer toAppendTo,
           java.lang.Object value)
Format a value according the format string. 
 | 
java.lang.String | 
simpleFormat(java.lang.Object value)
Formats the value in the most basic way, returning the resulting string. 
 | 
abstract void | 
simpleValue(java.lang.StringBuffer toAppendTo,
           java.lang.Object value)
Format a value according to the type, in the most basic way. 
 | 
protected final java.lang.String format
protected final java.util.Locale locale
public CellFormatter(java.lang.String format)
format.format - The format.public CellFormatter(java.util.Locale locale,
                     java.lang.String format)
format.locale - The locale.format - The format.public abstract void formatValue(java.lang.StringBuffer toAppendTo,
                                 java.lang.Object value)
toAppendTo - The buffer to append to.value - The value to format.public abstract void simpleValue(java.lang.StringBuffer toAppendTo,
                                 java.lang.Object value)
toAppendTo - The buffer to append to.value - The value to format.public java.lang.String format(java.lang.Object value)
value - The value to format.public java.lang.String simpleFormat(java.lang.Object value)
value - The value to format.Copyright 2021 The Apache Software Foundation or its licensors, as applicable.