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