Package org.apache.poi.ss.format
Class CellGeneralFormatter
java.lang.Object
org.apache.poi.ss.format.CellFormatter
org.apache.poi.ss.format.CellGeneralFormatter
A formatter for the default "General" cell format.
- Author:
- Ken Arnold, Industrious Media LLC
-
Field Summary
Fields inherited from class org.apache.poi.ss.format.CellFormatter
format, locale
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new general formatter.CellGeneralFormatter
(Locale locale) Creates a new general formatter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
formatValue
(StringBuffer toAppendTo, Object value) The general style is not quite the same as any other, or any combination of others.void
simpleValue
(StringBuffer toAppendTo, Object value) Equivalent toformatValue(StringBuffer,Object)
.Methods inherited from class org.apache.poi.ss.format.CellFormatter
format, simpleFormat
-
Constructor Details
-
CellGeneralFormatter
public CellGeneralFormatter()Creates a new general formatter. -
CellGeneralFormatter
Creates a new general formatter.
-
-
Method Details
-
formatValue
The general style is not quite the same as any other, or any combination of others.- Specified by:
formatValue
in classCellFormatter
- Parameters:
toAppendTo
- The buffer to append to.value
- The value to format.
-
simpleValue
Equivalent toformatValue(StringBuffer,Object)
. Format a value according to the type, in the most basic way..- Specified by:
simpleValue
in classCellFormatter
- Parameters:
toAppendTo
- The buffer to append to.value
- The value to format.
-