public final class FileType extends Object implements com.aspose.ms.System.IEquatable<FileType>
Represents file type. Provides methods to obtain list of all file types supported by <b>GroupDocs.Merger</b>
,
detect file type by extension etc.
Modifier and Type | Field and Description |
---|---|
static FileType |
BMP
Bitmap Image File (.bmp)
|
static FileType |
CSV
Comma Separated Values File (.csv)
|
static FileType |
DOC
Microsoft Word Document (.doc)
|
static FileType |
DOCM
Word Open XML Macro-Enabled Document (.docm)
|
static FileType |
DOCX
Microsoft Word Open XML Document (.docx)
|
static FileType |
DOT
Word Document Template (.dot)
|
static FileType |
DOTM
Word Open XML Macro-Enabled Document Template (.dotm)
|
static FileType |
DOTX
Word Open XML Document Template (.dotx)
|
static FileType |
EPUB
Open eBook File (.epub)
|
static FileType |
HTML
Hypertext Markup Language File (.html)
|
static FileType |
JPEG
JPEG Image (.jpeg)
|
static FileType |
MHT
MHTML Web Archive (.mht)
|
static FileType |
MHTML
MIME HTML File (.mhtml)
|
static FileType |
ODP
OpenDocument Presentation (.odp)
|
static FileType |
ODS
OpenDocument Spreadsheet (.ods)
|
static FileType |
ODT
OpenDocument Text Document (.odt)
|
static FileType |
ONE
OneNote Document (.one)
|
static FileType |
OTP
OpenDocument Presentation Template (.otp)
|
static FileType |
OTT
OpenDocument Document Template (.ott)
|
static FileType |
PDF
Portable Document Format File (.pdf)
|
static FileType |
PNG
Portable Network Graphic (.png)
|
static FileType |
PPS
PowerPoint Slide Show (.pps)
|
static FileType |
PPSX
PowerPoint Open XML Slide Show (.ppsx)
|
static FileType |
PPT
PowerPoint Presentation (.ppt)
|
static FileType |
PPTX
PowerPoint Open XML Presentation (.pptx)
|
static FileType |
PS
PostScript File (.ps)
|
static FileType |
RTF
Rich Text Format File (.rtf)
|
static FileType |
TEX
LaTeX Source Document (.tex)
|
static FileType |
TSV
Tab Separated Values File (.tsv)
|
static FileType |
TXT
Plain Text File (.txt)
|
static FileType |
Unknown
Represents unknown file type.
|
static FileType |
VDX
Visio Drawing XML File (.vdx)
|
static FileType |
VSDM
Visio Macro-Enabled Drawing (.vsdm)
|
static FileType |
VSDX
Visio Drawing (.vsdx)
|
static FileType |
VSSM
Visio Macro-Enabled Stencil File (.vssm)
|
static FileType |
VSSX
Visio Stencil File (.vssx)
|
static FileType |
VSTM
Visio Macro-Enabled Drawing Template (.vstm)
|
static FileType |
VSTX
Visio Drawing Template (.vstx)
|
static FileType |
VSX
Visio Stencil XML File (.vsx)
|
static FileType |
VTX
Visio Template XML File (.vtx)
|
static FileType |
XLAM
Excel Macro-Enabled Add-In (.xlam)
|
static FileType |
XLS
Excel Spreadsheet (.xls)
|
static FileType |
XLSB
Excel Binary Spreadsheet (.xlsb)
|
static FileType |
XLSM
Excel Open XML Macro-Enabled Spreadsheet (.xlsm)
|
static FileType |
XLSX
Microsoft Excel Open XML Spreadsheet (.xlsx)
|
static FileType |
XLT
Excel Template File (.xlt)
|
static FileType |
XLTM
Excel Open XML Macro-Enabled Spreadsheet Template (.xltm)
|
static FileType |
XLTX
Excel Open XML Spreadsheet Template (.xltx)
|
static FileType |
XPS
XML Paper Specification File (.xps)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(FileType other)
|
boolean |
equals(Object obj)
Determines whether the current
FileType is the same as specified object. |
static FileType |
fromExtension(String extension)
Maps file extension to file type.
|
String |
getExtension()
Filename suffix (including the period ".") e.g.
|
String |
getFileFormat()
File type name e.g.
|
static List<FileType> |
getSupportedFileTypes()
Retrieves supported file types
|
int |
hashCode()
Returns the hash code for the current
FileType object. |
static boolean |
op_Equality(FileType left,
FileType right)
Determines whether two
FileType objects are the same. |
static boolean |
op_Inequality(FileType left,
FileType right)
Determines whether two
FileType objects are not the same. |
void |
setExtension(String value)
Filename suffix (including the period ".") e.g.
|
void |
setFileFormat(String value)
File type name e.g.
|
String |
toString()
Returns a string that represents the current object.
|
public static FileType BMP
Bitmap Image File (.bmp)
public static FileType CSV
Comma Separated Values File (.csv)
public static FileType DOC
Microsoft Word Document (.doc)
public static FileType DOCM
Word Open XML Macro-Enabled Document (.docm)
public static FileType DOCX
Microsoft Word Open XML Document (.docx)
public static FileType DOT
Word Document Template (.dot)
public static FileType DOTM
Word Open XML Macro-Enabled Document Template (.dotm)
public static FileType DOTX
Word Open XML Document Template (.dotx)
public static FileType EPUB
Open eBook File (.epub)
public static FileType HTML
Hypertext Markup Language File (.html)
public static FileType JPEG
JPEG Image (.jpeg)
public static FileType MHT
MHTML Web Archive (.mht)
public static FileType MHTML
MIME HTML File (.mhtml)
public static FileType ODP
OpenDocument Presentation (.odp)
public static FileType ODS
OpenDocument Spreadsheet (.ods)
public static FileType ODT
OpenDocument Text Document (.odt)
public static FileType ONE
OneNote Document (.one)
public static FileType OTP
OpenDocument Presentation Template (.otp)
public static FileType OTT
OpenDocument Document Template (.ott)
public static FileType PDF
Portable Document Format File (.pdf)
public static FileType PNG
Portable Network Graphic (.png)
public static FileType PPS
PowerPoint Slide Show (.pps)
public static FileType PPSX
PowerPoint Open XML Slide Show (.ppsx)
public static FileType PPT
PowerPoint Presentation (.ppt)
public static FileType PPTX
PowerPoint Open XML Presentation (.pptx)
public static FileType PS
PostScript File (.ps)
public static FileType RTF
Rich Text Format File (.rtf)
public static FileType TEX
LaTeX Source Document (.tex)
public static FileType TSV
Tab Separated Values File (.tsv)
public static FileType TXT
Plain Text File (.txt)
public static FileType Unknown
Represents unknown file type.
public static FileType VDX
Visio Drawing XML File (.vdx)
public static FileType VSDM
Visio Macro-Enabled Drawing (.vsdm)
public static FileType VSDX
Visio Drawing (.vsdx)
public static FileType VSSM
Visio Macro-Enabled Stencil File (.vssm)
public static FileType VSSX
Visio Stencil File (.vssx)
public static FileType VSTM
Visio Macro-Enabled Drawing Template (.vstm)
public static FileType VSTX
Visio Drawing Template (.vstx)
public static FileType VSX
Visio Stencil XML File (.vsx)
public static FileType VTX
Visio Template XML File (.vtx)
public static FileType XLAM
Excel Macro-Enabled Add-In (.xlam)
public static FileType XLS
Excel Spreadsheet (.xls)
public static FileType XLSB
Excel Binary Spreadsheet (.xlsb)
public static FileType XLSM
Excel Open XML Macro-Enabled Spreadsheet (.xlsm)
public static FileType XLSX
Microsoft Excel Open XML Spreadsheet (.xlsx)
public static FileType XLT
Excel Template File (.xlt)
public static FileType XLTM
Excel Open XML Macro-Enabled Spreadsheet Template (.xltm)
public static FileType XLTX
Excel Open XML Spreadsheet Template (.xltx)
public static FileType XPS
XML Paper Specification File (.xps)
public final boolean equals(FileType other)
public boolean equals(Object obj)
Determines whether the current FileType
is the same as specified object.
public static FileType fromExtension(String extension)
Maps file extension to file type.
extension
- File extension (including the period ".").Unknown
file type.com.aspose.ms.System.ArgumentException
- Thrown when extension
is null or empty string.public final String getExtension()
Filename suffix (including the period ".") e.g. ".doc".
public final String getFileFormat()
File type name e.g. "Microsoft Word Document".
public static List<FileType> getSupportedFileTypes()
Retrieves supported file types
public int hashCode()
Returns the hash code for the current FileType
object.
public static boolean op_Equality(FileType left, FileType right)
Determines whether two FileType
objects are the same.
public static boolean op_Inequality(FileType left, FileType right)
Determines whether two FileType
objects are not the same.
public final void setExtension(String value)
Filename suffix (including the period ".") e.g. ".doc".
public final void setFileFormat(String value)
File type name e.g. "Microsoft Word Document".
Copyright © 2020. All rights reserved.