FileFormat
Inheritance: java.lang.Object
public final class FileFormat
A utility class providing constants. Specifies the format of a file.
Fields
Field | Description |
---|---|
UNSPECIFIED | Specifies an unset value. |
DOC | Specifies the Microsoft Word 97 - 2007 Binary Document format. |
DOT | Specifies the Microsoft Word 97 - 2007 Binary Template format. |
DOCX | Specifies the Office Open XML WordprocessingML Document (macro-free) format. |
DOCM | Specifies the Office Open XML WordprocessingML Macro-Enabled Document format. |
DOTX | Specifies the Office Open XML WordprocessingML Template (macro-free) format. |
DOTM | Specifies the Office Open XML WordprocessingML Macro-Enabled Template format. |
FLAT_OPC | Specifies the Office Open XML WordprocessingML format stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_MACRO_ENABLED | Specifies the Office Open XML WordprocessingML Macro-Enabled Document format stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_TEMPLATE | Specifies the Office Open XML WordprocessingML Template (macro-free) format stored in a flat XML file instead of a ZIP package. |
FLAT_OPC_TEMPLATE_MACRO_ENABLED | Specifies the Office Open XML WordprocessingML Macro-Enabled Template format stored in a flat XML file instead of a ZIP package. |
WORD_ML | |
ODT | Specifies the ODF Text Document format. |
OTT | Specifies the ODF Text Document Template format. |
XLS | Specifies the Microsoft Excel 97 - 2007 Binary Workbook format. |
XLSX | Specifies the Office Open XML SpreadsheetML Workbook (macro-free) format. |
XLSM | Specifies the Office Open XML SpreadsheetML Macro-Enabled Workbook format. |
XLTX | Specifies the Office Open XML SpreadsheetML Template (macro-free) format. |
XLTM | Specifies the Office Open XML SpreadsheetML Macro-Enabled Template format. |
XLAM | Specifies the Office Open XML SpreadsheetML Macro-Enabled Add-in format. |
XLSB | Specifies the Microsoft Excel 2007 Macro-Enabled Binary File format. |
SPREADSHEET_ML | |
ODS | Specifies the ODF Spreadsheet format. |
PPT | Specifies the Microsoft PowerPoint 97 - 2007 Binary Presentation format. |
PPS | Specifies the Microsoft PowerPoint 97 - 2007 Binary Slide Show format. |
PPTX | Specifies the Office Open XML PresentationML Presentation (macro-free) format. |
PPTM | Specifies the Office Open XML PresentationML Macro-Enabled Presentation format. |
PPSX | Specifies the Office Open XML PresentationML Slide Show (macro-free) format. |
PPSM | Specifies the Office Open XML PresentationML Macro-Enabled Slide Show format. |
POTX | Specifies the Office Open XML PresentationML Template (macro-free) format. |
POTM | Specifies the Office Open XML PresentationML Macro-Enabled Template format. |
ODP | Specifies the ODF Presentation format. |
MSG_ASCII | Specifies the Microsoft Outlook Message (MSG) format using ASCII character encoding. |
MSG_UNICODE | Specifies the Microsoft Outlook Message (MSG) format using Unicode character encoding. |
EML | Specifies the MIME standard format. |
EMLX | Specifies the Apple Mail.app program file format. |
RTF | Specifies the RTF format. |
TEXT | Specifies the plain text format. |
XML | Specifies the XML format of a general form. |
XAML | Specifies the Extensible Application Markup Language (XAML) format. |
XAML_PACKAGE | Specifies the Extensible Application Markup Language (XAML) package format. |
HTML | Specifies the HTML format. |
MHTML | Specifies the MHTML (Web archive) format. |
XPS | Specifies the XPS (XML Paper Specification) format. |
OPEN_XPS | Specifies the OpenXPS (Ecma-388) format. |
Specifies the PDF (Adobe Portable Document) format. | |
EPUB | Specifies the IDPF EPUB format. |
PS | Specifies the PS (PostScript) format. |
PCL | Specifies the PCL (Printer Control Language) format. |
SVG | Specifies the SVG (Scalable Vector Graphics) format. |
TIFF | Specifies the TIFF format. |
MARKDOWN | Specifies the Markdown format. |
POT | Specifies the Microsoft PowerPoint 97 - 2007 Binary Template format. |
OTP | Specifies the ODF Presentation Template format. |
XLT | Specifies the Microsoft Excel 97 - 2007 Binary Template format. |
length |
Methods
Method | Description |
---|---|
getName(int fileFormat) | |
toString(int fileFormat) | |
fromName(String fileFormatName) | |
getValues() |
UNSPECIFIED
public static final int UNSPECIFIED
Specifies an unset value. The default.
DOC
public static final int DOC
Specifies the Microsoft Word 97 - 2007 Binary Document format.
DOT
public static final int DOT
Specifies the Microsoft Word 97 - 2007 Binary Template format.
DOCX
public static final int DOCX
Specifies the Office Open XML WordprocessingML Document (macro-free) format.
DOCM
public static final int DOCM
Specifies the Office Open XML WordprocessingML Macro-Enabled Document format.
DOTX
public static final int DOTX
Specifies the Office Open XML WordprocessingML Template (macro-free) format.
DOTM
public static final int DOTM
Specifies the Office Open XML WordprocessingML Macro-Enabled Template format.
FLAT_OPC
public static final int FLAT_OPC
Specifies the Office Open XML WordprocessingML format stored in a flat XML file instead of a ZIP package.
FLAT_OPC_MACRO_ENABLED
public static final int FLAT_OPC_MACRO_ENABLED
Specifies the Office Open XML WordprocessingML Macro-Enabled Document format stored in a flat XML file instead of a ZIP package.
FLAT_OPC_TEMPLATE
public static final int FLAT_OPC_TEMPLATE
Specifies the Office Open XML WordprocessingML Template (macro-free) format stored in a flat XML file instead of a ZIP package.
FLAT_OPC_TEMPLATE_MACRO_ENABLED
public static final int FLAT_OPC_TEMPLATE_MACRO_ENABLED
Specifies the Office Open XML WordprocessingML Macro-Enabled Template format stored in a flat XML file instead of a ZIP package.
WORD_ML
public static final int WORD_ML
ODT
public static final int ODT
Specifies the ODF Text Document format.
OTT
public static final int OTT
Specifies the ODF Text Document Template format.
XLS
public static final int XLS
Specifies the Microsoft Excel 97 - 2007 Binary Workbook format.
XLSX
public static final int XLSX
Specifies the Office Open XML SpreadsheetML Workbook (macro-free) format.
XLSM
public static final int XLSM
Specifies the Office Open XML SpreadsheetML Macro-Enabled Workbook format.
XLTX
public static final int XLTX
Specifies the Office Open XML SpreadsheetML Template (macro-free) format.
XLTM
public static final int XLTM
Specifies the Office Open XML SpreadsheetML Macro-Enabled Template format.
XLAM
public static final int XLAM
Specifies the Office Open XML SpreadsheetML Macro-Enabled Add-in format.
XLSB
public static final int XLSB
Specifies the Microsoft Excel 2007 Macro-Enabled Binary File format.
SPREADSHEET_ML
public static final int SPREADSHEET_ML
ODS
public static final int ODS
Specifies the ODF Spreadsheet format.
PPT
public static final int PPT
Specifies the Microsoft PowerPoint 97 - 2007 Binary Presentation format.
PPS
public static final int PPS
Specifies the Microsoft PowerPoint 97 - 2007 Binary Slide Show format.
PPTX
public static final int PPTX
Specifies the Office Open XML PresentationML Presentation (macro-free) format.
PPTM
public static final int PPTM
Specifies the Office Open XML PresentationML Macro-Enabled Presentation format.
PPSX
public static final int PPSX
Specifies the Office Open XML PresentationML Slide Show (macro-free) format.
PPSM
public static final int PPSM
Specifies the Office Open XML PresentationML Macro-Enabled Slide Show format.
POTX
public static final int POTX
Specifies the Office Open XML PresentationML Template (macro-free) format.
POTM
public static final int POTM
Specifies the Office Open XML PresentationML Macro-Enabled Template format.
ODP
public static final int ODP
Specifies the ODF Presentation format.
MSG_ASCII
public static final int MSG_ASCII
Specifies the Microsoft Outlook Message (MSG) format using ASCII character encoding.
MSG_UNICODE
public static final int MSG_UNICODE
Specifies the Microsoft Outlook Message (MSG) format using Unicode character encoding.
EML
public static final int EML
Specifies the MIME standard format.
EMLX
public static final int EMLX
Specifies the Apple Mail.app program file format.
RTF
public static final int RTF
Specifies the RTF format.
TEXT
public static final int TEXT
Specifies the plain text format.
XML
public static final int XML
Specifies the XML format of a general form.
XAML
public static final int XAML
Specifies the Extensible Application Markup Language (XAML) format.
XAML_PACKAGE
public static final int XAML_PACKAGE
Specifies the Extensible Application Markup Language (XAML) package format.
HTML
public static final int HTML
Specifies the HTML format.
MHTML
public static final int MHTML
Specifies the MHTML (Web archive) format.
XPS
public static final int XPS
Specifies the XPS (XML Paper Specification) format.
OPEN_XPS
public static final int OPEN_XPS
Specifies the OpenXPS (Ecma-388) format.
public static final int PDF
Specifies the PDF (Adobe Portable Document) format.
EPUB
public static final int EPUB
Specifies the IDPF EPUB format.
PS
public static final int PS
Specifies the PS (PostScript) format.
PCL
public static final int PCL
Specifies the PCL (Printer Control Language) format.
SVG
public static final int SVG
Specifies the SVG (Scalable Vector Graphics) format.
TIFF
public static final int TIFF
Specifies the TIFF format.
MARKDOWN
public static final int MARKDOWN
Specifies the Markdown format.
POT
public static final int POT
Specifies the Microsoft PowerPoint 97 - 2007 Binary Template format.
OTP
public static final int OTP
Specifies the ODF Presentation Template format.
XLT
public static final int XLT
Specifies the Microsoft Excel 97 - 2007 Binary Template format.
length
public static final int length
getName(int fileFormat)
public static String getName(int fileFormat)
Parameters:
Parameter | Type | Description |
---|---|---|
fileFormat | int |
Returns: java.lang.String
toString(int fileFormat)
public static String toString(int fileFormat)
Parameters:
Parameter | Type | Description |
---|---|---|
fileFormat | int |
Returns: java.lang.String
fromName(String fileFormatName)
public static int fromName(String fileFormatName)
Parameters:
Parameter | Type | Description |
---|---|---|
fileFormatName | java.lang.String |
Returns: int
getValues()
public static int[] getValues()
Returns: int[]