public class XSSFDataFormat extends java.lang.Object implements DataFormat
Modifier | Constructor and Description |
---|---|
protected |
XSSFDataFormat(StylesTable stylesSource) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
putFormat(short index,
java.lang.String format)
Add a number format with a specific ID into the number format style table.
|
protected XSSFDataFormat(StylesTable stylesSource)
public short getFormat(java.lang.String format)
getFormat
in interface DataFormat
format
- string matching a built-in formatpublic java.lang.String getFormat(short index)
getFormat
in interface DataFormat
index
- of a formatnull
if there is not a format at that indexpublic void putFormat(short index, java.lang.String format)
fmt
This may be used to override built-in number formats.index
- the number format IDformat
- the number format codeCopyright 2022 The Apache Software Foundation or its licensors, as applicable.