Top Methods
org.apache.poi.ss.usermodel

public Interface DataFormat

Known Direct Implementers
org.apache.poi.hssf.usermodel.HSSFDataFormat

Method Summary

Modifier and TypeMethod and Description
public short

Returns:

index of format.
getFormat
(String
string matching a built in format
format
)

get the format index that matches the given format string.

public String

Returns:

string represented at index of format or null if there is not a format at that index
getFormat
(short
of a format
index
)

get the format string that matches the given format index

Method Detail

getFormatback to summary
public short getFormat(String format)

get the format index that matches the given format string. Creates a new format if one is not found. Aliases text to the proper format.

Parameters
format:String

string matching a built in format

Returns:short

index of format.

getFormatback to summary
public String getFormat(short index)

get the format string that matches the given format index

Parameters
index:short

of a format

Returns:String

string represented at index of format or null if there is not a format at that index