org.apache.poi.xssf.usermodel
Class XSSFDataFormat

java.lang.Object
  extended by org.apache.poi.xssf.usermodel.XSSFDataFormat
All Implemented Interfaces:
org.apache.poi.ss.usermodel.DataFormat

public class XSSFDataFormat
extends java.lang.Object
implements org.apache.poi.ss.usermodel.DataFormat

Handles data formats for XSSF.


Method Summary
 java.lang.String getFormat(short index)
          get the format string that matches the given format index
 short getFormat(java.lang.String format)
          Get the format index that matches the given format string, creating a new format entry if required.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFormat

public short getFormat(java.lang.String format)
Get the format index that matches the given format string, creating a new format entry if required. Aliases text to the proper format as required.

Specified by:
getFormat in interface org.apache.poi.ss.usermodel.DataFormat
Parameters:
format - string matching a built in format
Returns:
index of format.

getFormat

public java.lang.String getFormat(short index)
get the format string that matches the given format index

Specified by:
getFormat in interface org.apache.poi.ss.usermodel.DataFormat
Parameters:
index - of a format
Returns:
string represented at index of format or null if there is not a format at that index