FileFormat
Leave feedback
On this page
Inheritance: java.lang.Object
public final class FileFormat
A utility class providing constants. Specifies the format of a file.
| 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 |
| Method | Description |
|---|---|
| getName(int fileFormat) | |
| toString(int fileFormat) | |
| fromName(String fileFormatName) | |
| getValues() |
public static final int UNSPECIFIED
Specifies an unset value. The default.
public static final int DOC
Specifies the Microsoft Word 97 - 2007 Binary Document format.
public static final int DOT
Specifies the Microsoft Word 97 - 2007 Binary Template format.
public static final int DOCX
Specifies the Office Open XML WordprocessingML Document (macro-free) format.
public static final int DOCM
Specifies the Office Open XML WordprocessingML Macro-Enabled Document format.
public static final int DOTX
Specifies the Office Open XML WordprocessingML Template (macro-free) format.
public static final int DOTM
Specifies the Office Open XML WordprocessingML Macro-Enabled Template format.
public static final int FLAT_OPC
Specifies the Office Open XML WordprocessingML format stored in a flat XML file instead of a ZIP package.
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.
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.
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.
public static final int WORD_ML
public static final int ODT
Specifies the ODF Text Document format.
public static final int OTT
Specifies the ODF Text Document Template format.
public static final int XLS
Specifies the Microsoft Excel 97 - 2007 Binary Workbook format.
public static final int XLSX
Specifies the Office Open XML SpreadsheetML Workbook (macro-free) format.
public static final int XLSM
Specifies the Office Open XML SpreadsheetML Macro-Enabled Workbook format.
public static final int XLTX
Specifies the Office Open XML SpreadsheetML Template (macro-free) format.
public static final int XLTM
Specifies the Office Open XML SpreadsheetML Macro-Enabled Template format.
public static final int XLAM
Specifies the Office Open XML SpreadsheetML Macro-Enabled Add-in format.
public static final int XLSB
Specifies the Microsoft Excel 2007 Macro-Enabled Binary File format.
public static final int SPREADSHEET_ML
public static final int ODS
Specifies the ODF Spreadsheet format.
public static final int PPT
Specifies the Microsoft PowerPoint 97 - 2007 Binary Presentation format.
public static final int PPS
Specifies the Microsoft PowerPoint 97 - 2007 Binary Slide Show format.
public static final int PPTX
Specifies the Office Open XML PresentationML Presentation (macro-free) format.
public static final int PPTM
Specifies the Office Open XML PresentationML Macro-Enabled Presentation format.
public static final int PPSX
Specifies the Office Open XML PresentationML Slide Show (macro-free) format.
public static final int PPSM
Specifies the Office Open XML PresentationML Macro-Enabled Slide Show format.
public static final int POTX
Specifies the Office Open XML PresentationML Template (macro-free) format.
public static final int POTM
Specifies the Office Open XML PresentationML Macro-Enabled Template format.
public static final int ODP
Specifies the ODF Presentation format.
public static final int MSG_ASCII
Specifies the Microsoft Outlook Message (MSG) format using ASCII character encoding.
public static final int MSG_UNICODE
Specifies the Microsoft Outlook Message (MSG) format using Unicode character encoding.
public static final int EML
Specifies the MIME standard format.
public static final int EMLX
Specifies the Apple Mail.app program file format.
public static final int RTF
Specifies the RTF format.
public static final int TEXT
Specifies the plain text format.
public static final int XML
Specifies the XML format of a general form.
public static final int XAML
Specifies the Extensible Application Markup Language (XAML) format.
public static final int XAML_PACKAGE
Specifies the Extensible Application Markup Language (XAML) package format.
public static final int HTML
Specifies the HTML format.
public static final int MHTML
Specifies the MHTML (Web archive) format.
public static final int XPS
Specifies the XPS (XML Paper Specification) format.
public static final int OPEN_XPS
Specifies the OpenXPS (Ecma-388) format.
public static final int PDF
Specifies the PDF (Adobe Portable Document) format.
public static final int EPUB
Specifies the IDPF EPUB format.
public static final int PS
Specifies the PS (PostScript) format.
public static final int PCL
Specifies the PCL (Printer Control Language) format.
public static final int SVG
Specifies the SVG (Scalable Vector Graphics) format.
public static final int TIFF
Specifies the TIFF format.
public static final int MARKDOWN
Specifies the Markdown format.
public static final int POT
Specifies the Microsoft PowerPoint 97 - 2007 Binary Template format.
public static final int OTP
Specifies the ODF Presentation Template format.
public static final int XLT
Specifies the Microsoft Excel 97 - 2007 Binary Template format.
public static final int length
public static String getName(int fileFormat)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileFormat | int |
Returns: java.lang.String
public static String toString(int fileFormat)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileFormat | int |
Returns: java.lang.String
public static int fromName(String fileFormatName)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileFormatName | java.lang.String |
Returns: int
public static int[] getValues()
Returns: int[]
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.