FileType
Leave feedback
On this page
Inheritance: java.lang.Object, java.lang.Enum
All Implemented Interfaces: com.aspose.ms.System.IEquatable
public enum FileType extends Enum<FileType> implements System.IEquatable<FileType>
Information about file, such as type, extension, etc.
| Field | Description |
|---|---|
| UNKNOWN | Unknown. |
| DOC | Microsoft Word format. |
| DOCX | Microsoft Word Open XML format. |
| DOCM | Microsoft Word 2007 Macro file. |
| DOT | Microsoft Word Document Template. |
| DOTX | Microsoft Word Template. |
| DOTM | Microsoft Word Macro-Enabled Document Template. |
| RTF | Rich Text Format File. |
| ODT | Open Document Text. |
| XLS | Microsoft Excel Spreadsheet format. |
| XLSX | Microsoft Excel Open XML Spreadsheet. |
| XLSM | Microsoft Excel Spreadsheet Macros format |
| XLSB | Excel Binary File Format |
| ODS | OpenDocument Spreadsheet Document format |
| PPT | Microsoft PowerPoint Presentation. |
| PPTX | Microsoft PowerPoint Open XML Presentation. |
| PPS | Microsoft PowerPoint Slide Show (Legacy). |
| PPSX | Microsoft PowerPoint Slide Show. |
| ODP | Open Document Presentation. |
| TIF | Tagged Image File. |
| TIFF | Tagged Image File Format |
| JPEG | Joint Photographic Experts Group. |
| JPG | Joint Photographic Experts Group. |
| PNG | Portable Network Graphic File. |
| BMP | Bitmap Image File. |
| DWG | AutoCAD Drawing Database File. |
| DXF | Drawing Exchange Format File. |
| Adobe Portable Document format. | |
| HTM | Hypertext Markup Language File. |
| HTML | Hypertext Markup Language File. |
| EML | File in the MIME standard. |
| EMLX | Apple’s Mail.app program file format. |
| VSD | Microsoft Visio VSD binary format. |
| VSDX | Microsoft Visio 2013 VSDX file format. |
| VSDM | Microsoft Visio Macro-Enabled Drawing. |
| VSS | Microsoft Visio Stencil File. |
| VSX | Microsoft Visio Stencil XML File. |
| VSSX | Microsoft Visio Stencil File. |
| VST | Microsoft Visio VST binary template format. |
| VSTM | Microsoft Visio Macro-Enabled Drawing Template. |
| Method | Description |
|---|---|
| values() | |
| valueOf(String name) | |
| fromFileNameOrExtension(String fileNameOrExtension) | Return FileType based on file name or extension. |
| getSupportedFileTypes() | Get supported file types enumeration. |
| fromFoundationFileType(int foundationFileType) | |
| getFileFormat() | File format |
| getExtension() | File extention |
| typeEquals(FileType other) | File type equivalence check. |
| opEquality(FileType left, FileType right) | Operator overload. |
| opInequality(FileType left, FileType right) | Operator overload. |
| toString() | Returns a string that represents the file type. |
public static final FileType UNKNOWN
Unknown.
public static final FileType DOC
Microsoft Word format.
public static final FileType DOCX
Microsoft Word Open XML format.
public static final FileType DOCM
Microsoft Word 2007 Macro file.
public static final FileType DOT
Microsoft Word Document Template.
public static final FileType DOTX
Microsoft Word Template.
public static final FileType DOTM
Microsoft Word Macro-Enabled Document Template.
public static final FileType RTF
Rich Text Format File.
public static final FileType ODT
Open Document Text.
public static final FileType XLS
Microsoft Excel Spreadsheet format.
public static final FileType XLSX
Microsoft Excel Open XML Spreadsheet.
public static final FileType XLSM
Microsoft Excel Spreadsheet Macros format
public static final FileType XLSB
Excel Binary File Format
public static final FileType ODS
OpenDocument Spreadsheet Document format
public static final FileType PPT
Microsoft PowerPoint Presentation.
public static final FileType PPTX
Microsoft PowerPoint Open XML Presentation.
public static final FileType PPS
Microsoft PowerPoint Slide Show (Legacy).
public static final FileType PPSX
Microsoft PowerPoint Slide Show.
public static final FileType ODP
Open Document Presentation.
public static final FileType TIF
Tagged Image File.
public static final FileType TIFF
Tagged Image File Format
public static final FileType JPEG
Joint Photographic Experts Group.
public static final FileType JPG
Joint Photographic Experts Group.
public static final FileType PNG
Portable Network Graphic File.
public static final FileType BMP
Bitmap Image File.
public static final FileType DWG
AutoCAD Drawing Database File.
public static final FileType DXF
Drawing Exchange Format File.
public static final FileType PDF
Adobe Portable Document format.
public static final FileType HTM
Hypertext Markup Language File.
public static final FileType HTML
Hypertext Markup Language File.
public static final FileType EML
File in the MIME standard.
public static final FileType EMLX
Apple’s Mail.app program file format.
public static final FileType VSD
Microsoft Visio VSD binary format.
public static final FileType VSDX
Microsoft Visio 2013 VSDX file format.
public static final FileType VSDM
Microsoft Visio Macro-Enabled Drawing.
public static final FileType VSS
Microsoft Visio Stencil File.
public static final FileType VSX
Microsoft Visio Stencil XML File.
public static final FileType VSSX
Microsoft Visio Stencil File.
public static final FileType VST
Microsoft Visio VST binary template format.
public static final FileType VSTM
Microsoft Visio Macro-Enabled Drawing Template.
public static FileType[] values()
Returns: com.groupdocs.annotation.options.FileType[]
public static FileType valueOf(String name)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String |
Returns: FileType
public static FileType fromFileNameOrExtension(String fileNameOrExtension)
Return FileType based on file name or extension.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileNameOrExtension | java.lang.String | The file name or file extension. |
Returns: FileType - The file type.
public static List<FileType> getSupportedFileTypes()
Get supported file types enumeration.
Returns: java.util.List<com.groupdocs.annotation.options.FileType> - Enumeration of FileType.
public static FileType fromFoundationFileType(int foundationFileType)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| foundationFileType | int |
Returns: FileType
public final String getFileFormat()
File format
Returns: java.lang.String -
public final String getExtension()
File extention
Returns: java.lang.String -
public final boolean typeEquals(FileType other)
File type equivalence check.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | FileType | FileType object. |
Returns: boolean - True if file types are equivalent, false if not.
public static boolean opEquality(FileType left, FileType right)
Operator overload.
Parameters:
Returns: boolean - True if file types are equivalent, false if not.
public static boolean opInequality(FileType left, FileType right)
Operator overload.
Parameters:
Returns: boolean - True if file types are different, false if not.
public String toString()
Returns a string that represents the file type.
Returns: java.lang.String - A string that represents the file type.
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.