public enum FileType extends Enum<FileType> implements com.aspose.ms.System.IEquatable<FileType>
Information about file, such as type, extension, etc.
| Enum Constant and Description |
|---|
BMP
Bitmap Image File.
|
DOC
Microsoft Word format.
|
DOCM
Microsoft Word 2007 Macro file.
|
DOCX
Microsoft Word Open XML format.
|
DOT
Microsoft Word Document Template.
|
DOTM
Microsoft Word Macro-Enabled Document Template.
|
DOTX
Microsoft Word Template.
|
DWG
AutoCAD Drawing Database File.
|
DXF
Drawing Exchange Format File.
|
EML
File in the MIME standard.
|
EMLX
Apple's Mail.app program file format.
|
HTM
Hypertext Markup Language File.
|
HTML
Hypertext Markup Language File.
|
JPEG
Joint Photographic Experts Group.
|
JPG
Joint Photographic Experts Group.
|
ODP
Open Document Presentation.
|
ODS
OpenDocument Spreadsheet Document format
|
ODT
Open Document Text.
|
PDF
Adobe Portable Document format.
|
PNG
Portable Network Graphic File.
|
PPS
Microsoft PowerPoint Slide Show (Legacy).
|
PPSX
Microsoft PowerPoint Slide Show.
|
PPT
Microsoft PowerPoint Presentation.
|
PPTX
Microsoft PowerPoint Open XML Presentation.
|
RTF
Rich Text Format File.
|
TIF
Tagged Image File.
|
TIFF
Tagged Image File Format
|
UNKNOWN
Unknown.
|
VSD
Microsoft Visio VSD binary format.
|
VSDM
Microsoft Visio Macro-Enabled Drawing.
|
VSDX
Microsoft Visio 2013 VSDX file format.
|
VSS
Microsoft Visio Stencil File.
|
VSSX
Microsoft Visio Stencil File.
|
VST
Microsoft Visio VST binary template format.
|
VSTM
Microsoft Visio Macro-Enabled Drawing Template.
|
VSX
Microsoft Visio Stencil XML File.
|
XLS
Microsoft Excel Spreadsheet format.
|
XLSB
Excel Binary File Format
|
XLSM
Microsoft Excel Spreadsheet Macros format
|
XLSX
Microsoft Excel Open XML Spreadsheet.
|
| Modifier and Type | Method and Description |
|---|---|
static FileType |
fromFileNameOrExtension(String fileNameOrExtension)
Return FileType based on file name or extension.
|
static FileType |
fromFoundationFileType(int foundationFileType) |
String |
getExtension()
File extention
|
String |
getFileFormat()
File format
|
static List<FileType> |
getSupportedFileTypes()
Get supported file types enumeration.
|
static boolean |
opEquality(FileType left,
FileType right)
Operator overload.
|
static boolean |
opInequality(FileType left,
FileType right)
Operator overload.
|
String |
toString()
Returns a string that represents the file type.
|
boolean |
typeEquals(FileType other)
File type equivalence check.
|
static FileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileType BMP
Bitmap Image File.
public static final FileType DOC
Microsoft Word format.
public static final FileType DOCM
Microsoft Word 2007 Macro file.
public static final FileType DOCX
Microsoft Word Open XML format.
public static final FileType DOT
Microsoft Word Document Template.
public static final FileType DOTM
Microsoft Word Macro-Enabled Document Template.
public static final FileType DOTX
Microsoft Word Template.
public static final FileType DWG
AutoCAD Drawing Database File.
public static final FileType DXF
Drawing Exchange Format 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 HTM
Hypertext Markup Language File.
public static final FileType HTML
Hypertext Markup Language File.
public static final FileType JPEG
Joint Photographic Experts Group.
public static final FileType JPG
Joint Photographic Experts Group.
public static final FileType ODP
Open Document Presentation.
public static final FileType ODS
OpenDocument Spreadsheet Document format
public static final FileType ODT
Open Document Text.
public static final FileType PDF
Adobe Portable Document format.
public static final FileType PNG
Portable Network Graphic File.
public static final FileType PPS
Microsoft PowerPoint Slide Show (Legacy).
public static final FileType PPSX
Microsoft PowerPoint Slide Show.
public static final FileType PPT
Microsoft PowerPoint Presentation.
public static final FileType PPTX
Microsoft PowerPoint Open XML Presentation.
public static final FileType RTF
Rich Text Format File.
public static final FileType TIF
Tagged Image File.
public static final FileType TIFF
Tagged Image File Format
public static final FileType UNKNOWN
Unknown.
public static final FileType VSD
Microsoft Visio VSD binary format.
public static final FileType VSDM
Microsoft Visio Macro-Enabled Drawing.
public static final FileType VSDX
Microsoft Visio 2013 VSDX file format.
public static final FileType VSS
Microsoft Visio Stencil 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 final FileType VSX
Microsoft Visio Stencil XML File.
public static final FileType XLS
Microsoft Excel Spreadsheet format.
public static final FileType XLSB
Excel Binary File Format
public static final FileType XLSM
Microsoft Excel Spreadsheet Macros format
public static final FileType XLSX
Microsoft Excel Open XML Spreadsheet.
public static FileType fromFileNameOrExtension(String fileNameOrExtension)
Return FileType based on file name or extension.
fileNameOrExtension - The file name or file extension.public static FileType fromFoundationFileType(int foundationFileType)
public final String getExtension()
File extention
public final String getFileFormat()
File format
public static List<FileType> getSupportedFileTypes()
Get supported file types enumeration.
public static boolean opEquality(FileType left, FileType right)
Operator overload.
left - The left file type.right - The right file type.public static boolean opInequality(FileType left, FileType right)
Operator overload.
left - The left file type.right - The right file type.public String toString()
Returns a string that represents the file type.
public final boolean typeEquals(FileType other)
File type equivalence check.
other - FileType object.public static FileType 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 nullpublic static FileType[] values()
for (FileType c : FileType.values()) System.out.println(c);
Copyright © 2024. All rights reserved.