Top Description Fields Constructors Methods
org.apache.poi.ss.format

public Class CellGeneralFormatter

extends CellFormatter
Class Inheritance
Imports
java.util.Formatter, .Locale, org.apache.poi.util.LocaleUtil

A formatter for the default "General" cell format.

Field Summary

Inherited from org.apache.poi.ss.format.CellFormatter:
formatlocale

Constructor Summary

AccessConstructor and Description
public
CellGeneralFormatter()

Creates a new general formatter.

public
CellGeneralFormatter(Locale locale)

Creates a new general formatter.

Method Summary

Modifier and TypeMethod and Description
public void
formatValue(StringBuffer
The buffer to append to.
toAppendTo
,
Object
The value to format.
value
)

Implements abstract org.apache.poi.ss.format.CellFormatter.formatValue.

The general style is not quite the same as any other, or any combination of others.

public void
simpleValue(StringBuffer
The buffer to append to.
toAppendTo
,
Object
The value to format.
value
)

Implements abstract org.apache.poi.ss.format.CellFormatter.simpleValue.

Equivalent to formatValue(StringBuffer, Object).

Inherited from org.apache.poi.ss.format.CellFormatter:
formatquotesimpleFormat

Constructor Detail

CellGeneralFormatterback to summary
public CellGeneralFormatter()

Creates a new general formatter.

CellGeneralFormatterback to summary
public CellGeneralFormatter(Locale locale)

Creates a new general formatter.

Method Detail

formatValueback to summary
public void formatValue(StringBuffer toAppendTo, Object value)

Implements abstract org.apache.poi.ss.format.CellFormatter.formatValue.

The general style is not quite the same as any other, or any combination of others.

Parameters
toAppendTo:StringBuffer

The buffer to append to.

value:Object

The value to format.

Annotations
@Override
simpleValueback to summary
public void simpleValue(StringBuffer toAppendTo, Object value)

Implements abstract org.apache.poi.ss.format.CellFormatter.simpleValue.

Doc from org.apache.poi.ss.format.CellFormatter.simpleValue.

Equivalent to formatValue(StringBuffer, Object). 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.

.
Parameters
toAppendTo:StringBuffer

The buffer to append to.

value:Object

The value to format.

Annotations
@Override