FileType

Contents
[ ]

Inheritance: java.lang.Object

public final class FileType

Represents file type.

Fields

Field Description
Unknown Represents unknown file type.
TIF Tagged Image File (.tif) represents raster images that are meant for usage on a variety of devices that comply with this file format standard.
TIFF Tagged Image File Format (.tiff) represents raster images that are meant for usage on a variety of devices that comply with this file format standard.
JPG JPEG Image (.jpg) is a type of image format that is saved using the method of lossy compression.
JPEG JPEG Image (.jpeg) is a type of image format that is saved using the method of lossy compression.
PNG Portable Network Graphic (.png) is a type of raster image file format that use lossless compression.
GIF Graphical Interchange Format File (.gif) is a type of highly compressed image.
BMP Bitmap Image File (.bmp) is used to store bitmap digital images.
WMF Windows Metafile (.wmf) represents Microsoft Windows Metafile (WMF) for storing vector as well as bitmap-format images data.
EMF Enhanced Windows Metafile (.emf) represents graphical images device-independently.
WEBP WebP Image (.webp) is a modern raster web image file format that is based on lossless and lossy compression.
DJVU DjVu Image (.djvu) is a graphics file format intended for scanned documents and books especially those which contain the combination of text, drawings, images and photographs.
CGM Computer Graphics Metafile (.cgm) is a free, platform-independent, international standard metafile format for storing and exchanging of vector graphics (2D), raster graphics, and text.
CDR CorelDraw Vector Graphic Drawing (.cdr) is a vector drawing image file that is natively created with CorelDRAW for storing digital image encoded and compressed.
CMX CorelDRAW Metafile Exchange Image File (.cmx)
PCL Printer Command Language Document (.pcl)
PSD Adobe Photoshop Document (.psd) represents Adobe Photoshop’s native file format used for graphics designing and development.
DCM DICOM Image (.dcm) represents digital image which stores medical information of patients such as MRIs, CT scans and ultrasound images.
PS PostScript File (.ps)
EPS Encapsulated PostScript File (.eps) describes an Encapsulated PostScript language program that describes the appearance of a single page.
ODG OpenDocument Graphic File (.odg) is used by Apache OpenOffice’s Draw application to store drawing elements as a vector image.
SVG Scalable Vector Graphics File (.svg) is a Scalar Vector Graphics file that uses XML based text format for describing the appearance of an image.
PDF Portable Document Format File (.pdf) is a type of document created by Adobe back in 1990s.
PPT PowerPoint Presentation (.ppt) represents PowerPoint file that consists of a collection of slides for displaying as SlideShow.
PPTX PowerPoint Open XML Presentation (.pptx) are presentation files created with popular Microsoft PowerPoint application.
PPS PowerPoint Slide Show (.pps) are created using Microsoft PowerPoint for Slide Show purpose.
PPSX PowerPoint Open XML Slide Show (.ppsx) files are created using Microsoft PowerPoint 2007 and above for Slide Show purpose.
ODP OpenDocument Presentation (.odp) represents presentation file format used by OpenOffice.org in the OASISOpen standard.
POT PowerPoint Template (.pot) represents Microsoft PowerPoint template files created by PowerPoint 97-2003 versions.
PPTM PowerPoint Open XML Macro-Enabled Presentation are Macro-enabled Presentation files that are created with Microsoft PowerPoint 2007 or higher versions.
POTX PowerPoint Open XML Presentation Template (.potx) represents Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above.
POTM PowerPoint Open XML Macro-Enabled Presentation Template (.potm) are Microsoft PowerPoint template files with support for Macros.
PPSM PowerPoint Open XML Macro-Enabled Slide (.ppsm) represents Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher.
OTP OpenDocument Presentation Template (.otp) represents presentation template files created by applications in OASIS OpenDocument standard format.
XLS Excel Spreadsheet (.xls) represents Excel Binary File Format.
XLSX Microsoft Excel Open XML Spreadsheet (.xlsx) is a well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007.
XLSM Excel Open XML Macro-Enabled Spreadsheet (.xlsm) is a type of Spreadsheet files that support macros.
XLT Excel binary Template (.xlt) represents Excel Template File Format.
XLTM Excel Office OpenXML file Template (.xltm) represents Excel Template File Format.
XLSB Excel Binary Spreadsheet (.xlsb) specifies the Excel Binary File Format, which is a collection of records and structures that specify Excel workbook content.
CSV Comma Separated Values File (.csv) represents plain text files that contain records of data with comma separated values.
TSV Tab Separated Values File (.tsv) represents data separated with tabs in plain text format.
ODS OpenDocument Spreadsheet (.ods) stands for OpenDocument Spreadsheet Document format that are editable by user.
OTS OpenDocument Spreadsheet Template (.ots)
DOC Microsoft Word Document (.doc) represents documents generated by Microsoft Word or other word processing documents in binary file format.
DOCX Microsoft Word Open XML Document (.docx) is a well-known format for Microsoft Word documents.
DOCM Word Open XML Macro-Enabled Document (.docm) is a Microsoft Word 2007 or higher generated documents with the ability to run macros.
DOT Word Document Template (.dot) are template files created by Microsoft Word to have preformatted settings for generation of further DOC or DOCX files.
DOTX Word Open XML Document Template (.dotx) are template files created by Microsoft Word to have preformatted settings for generation of further DOCX files.
DOTM Word Open XML Macro-Enabled Document Template (.dotm) represents template file created with Microsoft Word 2007 or higher.
RTF Rich Text Format File (.rtf) represents a method of encoding formatted text and graphics for use within applications.
TXT Plain Text File (.txt) represents a text document that contains plain text in the form of lines.
ODT OpenDocument Text Document (.odt) are type of documents created with word processing applications that are based on OpenDocument Text File format.
OTT OpenDocument Document Template (.ott) represents template documents generated by applications in compliance with the OASIS’ OpenDocument standard format.
VCF vCard File (.vcf) is a digital file format for storing contact information.
WPD WordPerfect Document (.wpd)
AZW3 WordPerfect Document (.wpd)
PFX Personal Information Exchange (.pfx) file password protected file certificate commonly used for code signing your application.
ZIP Document ZIP archive (.zip) is an archive file format that supports lossless data compression.
TAR Unix-based utility for collecting one or more files (.tar) is a archive that can hold one or more files or directories.

Methods

Method Description
getFileFormat() File type name e.g.
getExtension() Filename suffix (including the period “.”) e.g.
fromExtension(String extension) Maps file extension to file type.
getSupportedFileTypes() Retrieves supported file types
equals(FileType other) Determines whether the current FileType is the same as specified FileType object.
equals(Object obj) Determines whether the current FileType is the same as specified object.
op_Equality(FileType left, FileType right) Determines whether two FileType objects are the same.
op_Inequality(FileType left, FileType right) Determines whether two FileType objects are not the same.
toString() Returns a string that represents the current object.

Unknown

public static final FileType Unknown

Represents unknown file type.

TIF

public static final FileType TIF

Tagged Image File (.tif) represents raster images that are meant for usage on a variety of devices that comply with this file format standard. It is capable of describing bilevel, grayscale, palette-color and full-color image data in several color spaces. Learn more about this file format here .

TIFF

public static final FileType TIFF

Tagged Image File Format (.tiff) represents raster images that are meant for usage on a variety of devices that comply with this file format standard. It is capable of describing bilevel, grayscale, palette-color and full-color image data in several color spaces. Learn more about this file format here .

JPG

public static final FileType JPG

JPEG Image (.jpg) is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality. Learn more about this file format here .

JPEG

public static final FileType JPEG

JPEG Image (.jpeg) is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality. Learn more about this file format here .

PNG

public static final FileType PNG

Portable Network Graphic (.png) is a type of raster image file format that use lossless compression. This file format was created as a replacement of Graphics Interchange Format (GIF) and has no copyright limitations. Learn more about this file format here .

GIF

public static final FileType GIF

Graphical Interchange Format File (.gif) is a type of highly compressed image. For each image GIF typically allow up to 8 bits per pixel and up to 256 colours are allowed across the image. Learn more about this file format here .

BMP

public static final FileType BMP

Bitmap Image File (.bmp) is used to store bitmap digital images. These images are independent of graphics adapter and are also called device independent bitmap (DIB) file format. Learn more about this file format here .

WMF

public static final FileType WMF

Windows Metafile (.wmf) represents Microsoft Windows Metafile (WMF) for storing vector as well as bitmap-format images data. Learn more about this file format here .

EMF

public static final FileType EMF

Enhanced Windows Metafile (.emf) represents graphical images device-independently. Meta-files of EMF comprises of variable-length records in chronological order that can render the stored image after parsing on any output device. Learn more about this file format here .

WEBP

public static final FileType WEBP

WebP Image (.webp) is a modern raster web image file format that is based on lossless and lossy compression. It provides same image quality while considerably reducing the image size. Learn more about this file format here .

DJVU

public static final FileType DJVU

DjVu Image (.djvu) is a graphics file format intended for scanned documents and books especially those which contain the combination of text, drawings, images and photographs. Learn more about this file format here .

CGM

public static final FileType CGM

Computer Graphics Metafile (.cgm) is a free, platform-independent, international standard metafile format for storing and exchanging of vector graphics (2D), raster graphics, and text. CGM uses object-oriented approach and many function provisions for image production. Learn more about this file format here .

CDR

public static final FileType CDR

CorelDraw Vector Graphic Drawing (.cdr) is a vector drawing image file that is natively created with CorelDRAW for storing digital image encoded and compressed. Such a drawing file contains text, lines, shapes, images, colours and effects for vector representation of image contents. Learn more about this file format here .

CMX

public static final FileType CMX

CorelDRAW Metafile Exchange Image File (.cmx)

PCL

public static final FileType PCL

Printer Command Language Document (.pcl)

PSD

public static final FileType PSD

Adobe Photoshop Document (.psd) represents Adobe Photoshop’s native file format used for graphics designing and development. Learn more about this file format here .

DCM

public static final FileType DCM

DICOM Image (.dcm) represents digital image which stores medical information of patients such as MRIs, CT scans and ultrasound images. Learn more about this file format here .

PS

public static final FileType PS

PostScript File (.ps)

EPS

public static final FileType EPS

Encapsulated PostScript File (.eps) describes an Encapsulated PostScript language program that describes the appearance of a single page. Learn more about this file format here .

ODG

public static final FileType ODG

OpenDocument Graphic File (.odg) is used by Apache OpenOffice’s Draw application to store drawing elements as a vector image. Learn more about this file format here .

SVG

public static final FileType SVG

Scalable Vector Graphics File (.svg) is a Scalar Vector Graphics file that uses XML based text format for describing the appearance of an image. Learn more about this file format here .

PDF

public static final FileType PDF

Portable Document Format File (.pdf) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. Learn more about this file format here .

PPT

public static final FileType PPT

PowerPoint Presentation (.ppt) represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. Learn more about this file format here .

PPTX

public static final FileType PPTX

PowerPoint Open XML Presentation (.pptx) are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. Learn more about this file format here .

PPS

public static final FileType PPS

PowerPoint Slide Show (.pps) are created using Microsoft PowerPoint for Slide Show purpose. PPS file reading and creation is supported by Microsoft PowerPoint 97-2003. Learn more about this file format here .

PPSX

public static final FileType PPSX

PowerPoint Open XML Slide Show (.ppsx) files are created using Microsoft PowerPoint 2007 and above for Slide Show purpose. Learn more about this file format here .

ODP

public static final FileType ODP

OpenDocument Presentation (.odp) represents presentation file format used by OpenOffice.org in the OASISOpen standard. Learn more about this file format here .

POT

public static final FileType POT

PowerPoint Template (.pot) represents Microsoft PowerPoint template files created by PowerPoint 97-2003 versions. Learn more about this file format here .

PPTM

public static final FileType PPTM

PowerPoint Open XML Macro-Enabled Presentation are Macro-enabled Presentation files that are created with Microsoft PowerPoint 2007 or higher versions. Learn more about this file format here .

POTX

public static final FileType POTX

PowerPoint Open XML Presentation Template (.potx) represents Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above. Learn more about this file format here .

POTM

public static final FileType POTM

PowerPoint Open XML Macro-Enabled Presentation Template (.potm) are Microsoft PowerPoint template files with support for Macros. POTM files are created with PowerPoint 2007 or above and contains default settings that can be used to create further presentation files. Learn more about this file format here .

PPSM

public static final FileType PPSM

PowerPoint Open XML Macro-Enabled Slide (.ppsm) represents Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher. Learn more about this file format here .

OTP

public static final FileType OTP

OpenDocument Presentation Template (.otp) represents presentation template files created by applications in OASIS OpenDocument standard format. Learn more about this file format here .

XLS

public static final FileType XLS

Excel Spreadsheet (.xls) represents Excel Binary File Format. Such files can be created by Microsoft Excel as well as other similar spreadsheet programs such as OpenOffice Calc or Apple Numbers. Learn more about this file format here .

XLSX

public static final FileType XLSX

Microsoft Excel Open XML Spreadsheet (.xlsx) is a well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007. Learn more about this file format here .

XLSM

public static final FileType XLSM

Excel Open XML Macro-Enabled Spreadsheet (.xlsm) is a type of Spreadsheet files that support macros. Learn more about this file format here .

XLT

public static final FileType XLT

Excel binary Template (.xlt) represents Excel Template File Format. Learn more about this file format here .

XLTM

public static final FileType XLTM

Excel Office OpenXML file Template (.xltm) represents Excel Template File Format. Learn more about this file format here .

XLSB

public static final FileType XLSB

Excel Binary Spreadsheet (.xlsb) specifies the Excel Binary File Format, which is a collection of records and structures that specify Excel workbook content. Learn more about this file format here .

CSV

public static final FileType CSV

Comma Separated Values File (.csv) represents plain text files that contain records of data with comma separated values. Learn more about this file format here .

TSV

public static final FileType TSV

Tab Separated Values File (.tsv) represents data separated with tabs in plain text format. Learn more about this file format here .

ODS

public static final FileType ODS

OpenDocument Spreadsheet (.ods) stands for OpenDocument Spreadsheet Document format that are editable by user. Data is stored inside ODF file into rows and columns. Learn more about this file format here .

OTS

public static final FileType OTS

OpenDocument Spreadsheet Template (.ots)

DOC

public static final FileType DOC

Microsoft Word Document (.doc) represents documents generated by Microsoft Word or other word processing documents in binary file format. Learn more about this file format here .

DOCX

public static final FileType DOCX

Microsoft Word Open XML Document (.docx) is a well-known format for Microsoft Word documents. Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from plain binary to a combination of XML and binary files. Learn more about this file format here .

DOCM

public static final FileType DOCM

Word Open XML Macro-Enabled Document (.docm) is a Microsoft Word 2007 or higher generated documents with the ability to run macros. Learn more about this file format here .

DOT

public static final FileType DOT

Word Document Template (.dot) are template files created by Microsoft Word to have preformatted settings for generation of further DOC or DOCX files. Learn more about this file format here .

DOTX

public static final FileType DOTX

Word Open XML Document Template (.dotx) are template files created by Microsoft Word to have preformatted settings for generation of further DOCX files. Learn more about this file format here .

DOTM

public static final FileType DOTM

Word Open XML Macro-Enabled Document Template (.dotm) represents template file created with Microsoft Word 2007 or higher. Learn more about this file format here .

RTF

public static final FileType RTF

Rich Text Format File (.rtf) represents a method of encoding formatted text and graphics for use within applications. Learn more about this file format here .

TXT

public static final FileType TXT

Plain Text File (.txt) represents a text document that contains plain text in the form of lines. Learn more about this file format here .

ODT

public static final FileType ODT

OpenDocument Text Document (.odt) are type of documents created with word processing applications that are based on OpenDocument Text File format. Learn more about this file format here .

OTT

public static final FileType OTT

OpenDocument Document Template (.ott) represents template documents generated by applications in compliance with the OASIS’ OpenDocument standard format. Learn more about this file format here .

VCF

public static final FileType VCF

vCard File (.vcf) is a digital file format for storing contact information. The format is widely used for data interchange among popular information exchange applications. Learn more about this file format here .

WPD

public static final FileType WPD

WordPerfect Document (.wpd)

AZW3

public static final FileType AZW3

WordPerfect Document (.wpd)

PFX

public static final FileType PFX

Personal Information Exchange (.pfx) file password protected file certificate commonly used for code signing your application. Learn more about this file format here .

ZIP

public static final FileType ZIP

Document ZIP archive (.zip) is an archive file format that supports lossless data compression. Can hold one or more files or directories. Learn more about this file format here .

TAR

public static final FileType TAR

Unix-based utility for collecting one or more files (.tar) is a archive that can hold one or more files or directories. Learn more about this file format here .

getFileFormat()

public final String getFileFormat()

File type name e.g. “Microsoft Word Document”.

Returns: java.lang.String

getExtension()

public final String getExtension()

Filename suffix (including the period “.”) e.g. “.doc”.

Returns: java.lang.String

fromExtension(String extension)

public static FileType fromExtension(String extension)

Maps file extension to file type.

Parameters:

Parameter Type Description
extension java.lang.String File extension (including the period “.”).

Returns: FileType - When file type is supported returns it, otherwise returns default #Unknown.Unknown file type.

getSupportedFileTypes()

public static List<FileType> getSupportedFileTypes()

Retrieves supported file types

Returns: java.util.List<com.groupdocs.signature.domain.documentpreview.FileType> - Returns sequence of supported file types

equals(FileType other)

public final boolean equals(FileType other)

Determines whether the current FileType is the same as specified FileType object.

Parameters:

Parameter Type Description
other FileType The object to compare with the current FileType object.

Returns: boolean - ``` true


if both [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) objects are the same; otherwise,

false

### equals(Object obj) {#equals-java.lang.Object-}

public boolean equals(Object obj)



Determines whether the current [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) is the same as specified object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | java.lang.Object | The object to compare with the current [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) object. |

**Returns:**
boolean - ```
true

if

obj

parameter is FileType and is the same as current FileType object; otherwise,

false

op_Equality(FileType left, FileType right)

public static boolean op_Equality(FileType left, FileType right)

Determines whether two FileType objects are the same.

Parameters:

Parameter Type Description
left FileType Left FileType object.
right FileType Right FileType object.

Returns: boolean - ``` true


if both [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) objects are the same; otherwise,

false

### op_Inequality(FileType left, FileType right) {#op-Inequality-com.groupdocs.signature.domain.documentpreview.FileType-com.groupdocs.signature.domain.documentpreview.FileType-}

public static boolean op_Inequality(FileType left, FileType right)



Determines whether two [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) objects are not the same.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| left | [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) | Left [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) object. |
| right | [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) | Right [FileType](../../com.groupdocs.signature.domain.documentpreview/filetype) object. |

**Returns:**
boolean - ```
true

if both FileType objects are not the same; otherwise,

false

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - A string that represents the current object.