public enum FileFormat extends Enum<FileFormat>
| Enum Constant and Description |
|---|
CHM
Compiled HTML Help (.chm).
|
CSV
Comma-Separated Values (.csv).
|
DOC
Microsoft Word 97-2003 Document (.doc).
|
DOCM
Microsoft Word Macro-Enabled Document (.docm).
|
DOCX
Microsoft Word Document (.docx).
|
DOT
Microsoft Word 97-2003 Template (.dot).
|
DOTM
Microsoft Word Macro-Enabled Template (.dotm).
|
DOTX
Microsoft Word Template (.dotx).
|
EPUB
Electronic Publication (.epub).
|
MD
Markdown (.md).
|
MOBI
Mobipocket E-Book (.mobi).
|
ODS
OpenDocument Spreadsheet (.ods).
|
ODT
OpenDocument Text (.odt).
|
OTS
OpenDocument Spreadsheet Template (.ots).
|
OTT
OpenDocument Text Template (.ott).
|
PDF
Portable Document Format (.pdf).
|
RTF
Rich Text Format (.rtf).
|
TSV
Tab-Separated Values (.tsv).
|
TXT
Plain Text (.txt).
|
UNKNOWN
Format is unknown and should be detected automatically.
|
XLS
Microsoft Excel 97-2003 Spreadsheet (.xls).
|
XLSB
Microsoft Excel Binary Spreadsheet (.xlsb).
|
XLSM
Microsoft Excel Macro-Enabled Spreadsheet (.xlsm).
|
XLSX
Microsoft Excel Spreadsheet (.xlsx).
|
| Modifier and Type | Method and Description |
|---|---|
static FileFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFormat UNKNOWN
public static final FileFormat DOC
public static final FileFormat DOCX
public static final FileFormat DOCM
public static final FileFormat DOT
public static final FileFormat DOTX
public static final FileFormat DOTM
public static final FileFormat RTF
public static final FileFormat ODT
public static final FileFormat OTT
public static final FileFormat XLSX
public static final FileFormat XLS
public static final FileFormat XLSB
public static final FileFormat XLSM
public static final FileFormat CSV
public static final FileFormat TSV
public static final FileFormat ODS
public static final FileFormat OTS
public static final FileFormat PDF
public static final FileFormat EPUB
public static final FileFormat MOBI
public static final FileFormat TXT
public static final FileFormat MD
public static final FileFormat CHM
public static FileFormat[] values()
for (FileFormat c : FileFormat.values()) System.out.println(c);
public static FileFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2026. All rights reserved.