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

public Class CellTextFormatter

extends CellFormatter
Class Inheritance
Imports
java.util.Locale

This class implements printing out text.

Field Summary

Modifier and TypeField and Description
private final String
pack-priv static final CellFormatter
private final int[]
Inherited from org.apache.poi.ss.format.CellFormatter:
formatlocale

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Format a value according the format string.

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.

Format a value according to the type, in the most basic way.

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

Field Detail

descback to summary
private final String desc
SIMPLE_TEXTback to summary
pack-priv static final CellFormatter SIMPLE_TEXT
textPosback to summary
private final int[] textPos

Constructor Detail

CellTextFormatterback to summary
public CellTextFormatter(String format)

Method Detail

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

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

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

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.

Parameters
toAppendTo:StringBuffer

The buffer to append to.

obj: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.

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.

For text, this is just printing the text.

Parameters
toAppendTo:StringBuffer

The buffer to append to.

value:Object

The value to format.

Annotations
@Override