public final class HSSFDataFormat extends Object implements DataFormat
BuiltinFormats for a list of supported built-in formats.
International Formats| Modifier and Type | Method and Description |
|---|---|
static String |
getBuiltinFormat(short index)
get the format string that matches the given format index
|
static short |
getBuiltinFormat(String format)
get the format index that matches the given format string
|
static List<String> |
getBuiltinFormats() |
String |
getFormat(short index)
get the format string that matches the given format index
|
short |
getFormat(String pFormat)
Get the format index that matches the given format
string, creating a new format entry if required.
|
static int |
getNumberOfBuiltinBuiltinFormats()
get the number of built-in and reserved builtinFormats
|
String |
getRawFormat(short index)
get the format string that matches the given format index
|
boolean |
isBuiltinFormat(short index) |
short |
newFormat(String format)
create a new data format and return its index.
|
public static short getBuiltinFormat(String format)
Automatically converts "text" to excel's format string to represent text.
format - string matching a built in formatpublic short getFormat(String pFormat)
getFormat in interface DataFormatpFormat - string matching a built in formatpublic String getFormat(short index)
getFormat in interface DataFormatindex - of a formatpublic String getRawFormat(short index)
getRawFormat in interface DataFormatindex - of a formatpublic boolean isBuiltinFormat(short index)
public static String getBuiltinFormat(short index)
index - of a built in formatpublic static int getNumberOfBuiltinBuiltinFormats()
public short newFormat(String format)
DataFormatnewFormat in interface DataFormatformat - number format codeCopyright © 2020. All rights reserved.