public final class FileType extends Object
Represents a file type. Provides methods to obtain a list of all file types supported by GroupDocs.Redaction, detect file type by extension, etc.
Learn more
Modifier and Type | Method and Description |
---|---|
boolean |
equals(FileType other)
Determines whether the current
FileType is the same as specified FileType object. |
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.
|
static FileType |
getBMP()
Bitmap Image File (.bmp)
|
static FileType |
getCSV()
Comma Separated Values File (.csv)
|
static FileType |
getDOC()
Microsoft Word Document (.doc)
|
static FileType |
getDOCM()
Word Open XML Macro-Enabled Document (.docm)
|
static FileType |
getDOCX()
Microsoft Word Open XML Document (.docx)
|
static FileType |
getDOT()
Word Document Template (.dot)
|
static FileType |
getDOTM()
Word Open XML Macro-Enabled Document Template (.dotm)
|
static FileType |
getDOTX()
Word Open XML Document Template (.dotx)
|
String |
getExtension()
Gets filename suffix (including the period "."), for instance ".doc".
|
String |
getFileFormat()
Gets file type name, for example "Microsoft Word Document".
|
static FileType |
getGIF()
Graphical Interchange Format File (.gif)
|
static FileType |
getHTM()
Hypertext Markup Language File (.htm)
|
static FileType |
getHTML()
Hypertext Markup Language File (.html)
|
static FileType |
getJP2()
JPEG 2000 Core Image File (.jp2)
|
static FileType |
getJPEG()
JPEG Image (.jpeg)
|
static FileType |
getJPG()
JPEG Image (.jpg)
|
static FileType |
getMD()
Markdown Documentation File (.md)
|
static FileType |
getNUMBERS()
Apple Numbers Spreadsheet (.numbers)
|
static FileType |
getODP()
OpenDocument Presentation (.odp)
|
static FileType |
getODS()
OpenDocument Spreadsheet (.ods)
|
static FileType |
getODT()
OpenDocument Text Document (.odt)
|
static FileType |
getOTS()
OpenDocument Spreadsheet Template (.ots)
|
static FileType |
getOTT()
OpenDocument Document Template (.ott)
|
static FileType |
getPDF()
Portable Document Format File (.pdf)
|
static FileType |
getPNG()
Portable Network Graphic (.png)
|
static FileType |
getPPT()
PowerPoint Presentation (.ppt)
|
static FileType |
getPPTX()
PowerPoint Open XML Presentation (.pptx)
|
static FileType |
getRTF()
Rich Text Format File (.rtf)
|
static Iterable<FileType> |
getSupportedFileTypes()
Retrieves supported file types
|
static FileType |
getTIF()
Tagged Image File (.tif)
|
static FileType |
getTIFF()
Tagged Image File Format (.tiff)
|
static FileType |
getTSV()
Tab Separated Values File (.tsv)
|
static FileType |
getTXT()
Plain Text File (.txt)
|
static FileType |
getUnknown()
Represents unknown file type.
|
static FileType |
getXLS()
Excel Spreadsheet (.xls)
|
static FileType |
getXLSB()
Excel Binary Spreadsheet (.xlsb)
|
static FileType |
getXLSM()
Excel Open XML Macro-Enabled Spreadsheet (.xlsm)
|
static FileType |
getXLSX()
Microsoft Excel Open XML Spreadsheet (.xlsx)
|
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. |
String |
toString()
Returns a string that represents the current object.
|
public final String getFileFormat()
Gets file type name, for example "Microsoft Word Document".
public final String getExtension()
Gets filename suffix (including the period "."), for instance ".doc".
public static FileType getUnknown()
Represents unknown file type.
public static FileType getTIF()
Tagged Image File (.tif)
public static FileType getTIFF()
Tagged Image File Format (.tiff)
public static FileType getJPG()
JPEG Image (.jpg)
public static FileType getJPEG()
JPEG Image (.jpeg)
public static FileType getPNG()
Portable Network Graphic (.png)
public static FileType getGIF()
Graphical Interchange Format File (.gif)
public static FileType getBMP()
Bitmap Image File (.bmp)
public static FileType getJP2()
JPEG 2000 Core Image File (.jp2)
public static FileType getHTM()
Hypertext Markup Language File (.htm)
public static FileType getHTML()
Hypertext Markup Language File (.html)
public static FileType getPDF()
Portable Document Format File (.pdf)
public static FileType getPPT()
PowerPoint Presentation (.ppt)
public static FileType getPPTX()
PowerPoint Open XML Presentation (.pptx)
public static FileType getODP()
OpenDocument Presentation (.odp)
public static FileType getXLS()
Excel Spreadsheet (.xls)
public static FileType getXLSX()
Microsoft Excel Open XML Spreadsheet (.xlsx)
public static FileType getXLSM()
Excel Open XML Macro-Enabled Spreadsheet (.xlsm)
public static FileType getXLSB()
Excel Binary Spreadsheet (.xlsb)
public static FileType getCSV()
Comma Separated Values File (.csv)
public static FileType getTSV()
Tab Separated Values File (.tsv)
public static FileType getODS()
OpenDocument Spreadsheet (.ods)
public static FileType getOTS()
OpenDocument Spreadsheet Template (.ots)
public static FileType getNUMBERS()
Apple Numbers Spreadsheet (.numbers)
public static FileType getMD()
Markdown Documentation File (.md)
public static FileType getDOC()
Microsoft Word Document (.doc)
public static FileType getDOCX()
Microsoft Word Open XML Document (.docx)
public static FileType getDOCM()
Word Open XML Macro-Enabled Document (.docm)
public static FileType getDOT()
Word Document Template (.dot)
public static FileType getDOTX()
Word Open XML Document Template (.dotx)
public static FileType getDOTM()
Word Open XML Macro-Enabled Document Template (.dotm)
public static FileType getRTF()
Rich Text Format File (.rtf)
public static FileType getTXT()
Plain Text File (.txt)
public static FileType getODT()
OpenDocument Text Document (.odt)
public static FileType getOTT()
OpenDocument Document Template (.ott)
public static FileType fromExtension(String extension)
Maps file extension to file type.
extension
- File extension (including the period ".").Unknown
file type.T:System.ArgumentException
- Thrown when extension
is null or empty string.public static Iterable<FileType> getSupportedFileTypes()
Retrieves supported file types
public final boolean equals(FileType other)
Determines whether the current FileType
is the same as specified FileType
object.
other
- The object to compare with the current FileType
object.trueif both
FileType
objects are the same; otherwise, false
public boolean equals(Object obj)
Determines whether the current FileType
is the same as specified object.
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.
left
- Left FileType
object.right
- Right FileType
object.trueif both
FileType
objects are the same; otherwise, false
public static boolean op_Inequality(FileType left, FileType right)
Determines whether two FileType
objects are not the same.
left
- Left FileType
object.right
- Right FileType
object.trueif both
FileType
objects are not the same; otherwise, false