public enum FileType extends Enum<FileType> implements com.aspose.ms.System.IEquatable<FileType>, com.groupdocs.viewer.caching.Cacheable
Represents file type. Provides methods to obtain list of all file types supported by GroupDocs.Viewer.
Enum Constant and Description |
---|
AI
Adobe Illustrator (.ai) is a file format for Adobe Illustrator drawings.
|
APNG
Animated Portable Network Graphic (.apng) is extension of PNG format that support animation.
|
AS
ActionScript File (.as)
|
AS_3
ActionScript File (.as)
|
ASM
Assembly Language Source Code File (.asm)
|
BAT
DOS Batch File (.bat)
|
BMP
Bitmap Image File (.bmp) is used to store bitmap digital images.
|
BZ_2
Bzip2 Compressed File (.bz2) are compressed files generated using the BZIP2 open source compression method, mostly on UNIX or Linux system.
|
C
C/C++ Source Code File (.c)
|
CC
C++ Source Code File (.cc)
|
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.
|
CF2
Common File Format File
Learn more about this file format here.
|
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.
|
CHM
Microsoft Compiled HTML Help File (.chm) is a well-known format for HELP (documentation to some application) documents.
|
CMAKE
CMake File (.cmake)
|
CMX
Corel Exchange (.cmx) is a drawing image file that may contain vector graphics as well as bitmap graphics.
|
CPP
C++ Source Code File (.cpp)
|
CS
C# Source Code File (.cs) is a source code file for C# programming language.
|
CSS
Cascading Style Sheet (.css)
|
CSV
Comma Separated Values File (.csv) represents plain text files that contain records of data with comma separated values.
|
CXX
C++ Source Code File (.cxx)
|
DCM
DICOM Image (.dcm) represents digital image which stores medical information of patients such as MRIs, CT scans and ultrasound images.
|
DGN
MicroStation Design File (.dgn) are drawings created by and supported by CAD applications such as MicroStation and Intergraph Interactive Graphics Design System.
|
DIB
Device Independent Bitmap File (.dib)
|
DIFF
Patch File (.diff)
|
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.
|
DNG
Digital Negative Specification (.dng) is a digital camera image format used for the storage of raw files.
|
DOC
Microsoft Word Document (.doc) represents documents generated by Microsoft Word or other word processing documents in binary file format.
|
DOCM
Word Open XML Macro-Enabled Document (.docm) is a Microsoft Word 2007 or higher generated documents with the ability to run macros.
|
DOCX
Microsoft Word Open XML Document (.docx) is a well-known format for Microsoft Word documents.
|
DOT
Word Document Template (.dot) are template files created by Microsoft Word to have pre-formatted settings for generation of further DOC or DOCX files.
|
DOTM
Word Open XML Macro-Enabled Document Template (.dotm) represents template file created with Microsoft Word 2007 or higher.
|
DOTX
Word Open XML Document Template (.dotx) are template files created by Microsoft Word to have pre-formatted settings for generation of further DOCX files.
|
DWF
Design Web Format File (.dwf) represents 2D/3D drawing in compressed format for viewing, reviewing or printing design files.
|
DWFX
Design Web Format File XPS (.dwfx) represents 2D/3D drawing as XPS document in compressed format for viewing, reviewing or printing design files.
|
DWG
AutoCAD Drawing Database File (.dwg) represents proprietary binary files used for containing 2D and 3D design data.
|
DWT
AutoCAD Drawing Template (.dwt) is an AutoCAD drawing template file that is used as starter for creating drawings that can be saved as DWG files.
|
DXF
Drawing Exchange Format File (.dxf) is a tagged data representation of AutoCAD drawing file.
|
EMF
Enhanced Windows Metafile (.emf) represents graphical images device-independently.
|
EML
E-Mail Message (.eml) represents email messages saved using Outlook and other relevant applications.
|
EMLX
Apple Mail Message (.emlx) is implemented and developed by Apple.
|
EMZ
Enhanced Windows Metafile compressed (.emz) represents graphical images device-independently compressed by GZIP.
|
EPS
Encapsulated PostScript File (.eps) describes an Encapsulated PostScript language program that describes the appearance of a single page.
|
EPUB
Open eBook File (.epub) is an e-book file format that provide a standard digital publication format for publishers and consumers.
|
ERB
Ruby ERB Script (.erb)
|
EXCEL_2003_XML
Excel 2003 XML (SpreadsheetML) represents Excel Binary File Format.
|
FBX
Autodesk FBX Interchange File (FilmBoX) (.fbx) represents 3D model format.
|
FODG
Flat XML ODF Template (.fodg) is used by Apache OpenOffice's Draw application to store drawing elements as a vector image.
|
FODP
OpenDocument Presentation (.fodp) represents OpenDocument Flat XML Presentation.
|
FODS
OpenDocument Flat XML Spreadsheet (.fods)
|
GIF
Graphical Interchange Format File (.gif) is a type of highly compressed image.
|
GROOVY
Groovy Source Code File (.groovy)
|
GZ
Gnu Zipped File (.gz) are compressed files created with gzip compression application.
|
GZIP
Gnu Zipped File (.gzip) was introduced as a free utility for replacing the Compress program used in Unix systems.
|
H
C/C++/Objective-C Header File (.h)
|
HAML
Haml Source Code File (.haml)
|
HH
C++ Header File (.hh)
|
HPG
PLT (HPGL) (.hpg)
|
HTM
Hypertext Markup Language File (.htm) is the extension for web pages created for display in browsers.
|
HTML
Hypertext Markup Language File (.html) is the extension for web pages created for display in browsers.
|
ICO
Icon File (.ico) are image file types used as icon for representation of an application on Microsoft Windows.
|
IFC
Industry Foundation Classes File (.ifc) is a file format that establishes international standards to import and export building objects and their properties.
|
IGS
Initial Graphics Exchange Specification (IGES) (.igs)
|
J2C
JPEG 2000 Code InputStream (.j2c)
|
J2K
JPEG 2000 Code Stream (.j2k) is an image that is compressed using the wavelet compression instead of DCT compression.
|
JAVA
Java Source Code File (.java)
|
JLS
JPEG-LS (JLS) (.jls)
|
JP_2
JPEG 2000 Core Image File (.jp2) is an image coding system and state-of-the-art image compression standard.
|
JPC
JPEG 2000 Code InputStream (.jpc)
|
JPEG
JPEG Image (.jpeg) is a type of image format that is saved using the method of lossy compression.
|
JPF
JPEG 2000 Image File (.jpf)
|
JPG
JPEG Image (.jpg) is a type of image format that is saved using the method of lossy compression.
|
JPM
JPEG 2000 Image File (.jpm)
|
JPX
JPEG 2000 Image File (.jpx)
|
JS
JavaScript File (.js)
|
JSON
JavaScript Object Notation File (.json)
|
LESS
LESS Style Sheet (.less)
|
LOG
Log File (.log)
|
M
Objective-C Implementation File (.m)
|
MAKE
Xcode Makefile Script (.make)
|
MBOX
Email Mailbox File (.mbox)
Learn more about this file format here.
|
MD
Markdown Documentation File (.md)
|
MHT
MHTML Web Archive (.mht)
|
MHTML
MIME HTML File (.mhtml)
|
ML
ML Source Code File (.ml)
|
MM
Objective-C++ Source File (.mm)
|
MOBI
Mobipocket eBook (.mobi) is one of the most widely used ebook file format.
|
MPP
Microsoft Project File (.mpp) is Microsoft Project data file that stores information related to project management in an integrated manner.
|
MPT
Microsoft Project Template (.mpt) contains basic information and structure along with document settings for creating .MPP files.
|
MPX
Microsoft Project Exchange file (.mpx) is an ASCII file format for transferring of project information between Microsoft Project (MSP) and other applications that support the MPX file format such as Primavera Project Planner, Sciforma and Timerline Precision Estimating.
|
MSG
Outlook Mail Message (.msg) is a file format used by Microsoft Outlook and Exchange to store email messages, contact, appointment, or other tasks.
|
NSF
Lotus Notes Database (.nsf)
Learn more about this file format https://fileinfo.com/extension/nsf
|
NUMBERS
Apple numbers represents Excel like Binary File Format.
|
OBJ
Wavefront 3D Object File (.obj) is 3D image file introduced by Wavefront Technologies
Learn more about this file format here.
|
ODG
OpenDocument Graphic File (.odg) is used by Apache OpenOffice's Draw application to store drawing elements as a vector image.
|
ODP
OpenDocument Presentation (.odp) represents presentation file format used by OpenOffice.org in the OASISOpen standard.
|
ODS
OpenDocument Spreadsheet (.ods) stands for OpenDocument Spreadsheet Document format that are editable by user.
|
ODT
OpenDocument Text Document (.odt) are type of documents created with word processing applications that are based on OpenDocument Text File format.
|
ONE
OneNote Document (.one) is created by Microsoft OneNote application.
|
OST
Outlook Offline Data File (.ost) represents user's mailbox data in offline mode on local machine upon registration with Exchange Server using Microsoft Outlook.
|
OTG
OpenDocument Graphic Template (.otg)
|
OTP
OpenDocument Presentation Template (.otp) represents presentation template files created by applications in OASIS OpenDocument standard format.
|
OTS
OpenDocument Spreadsheet Template (.ots)
|
OTT
OpenDocument Document Template (.ott) represents template documents generated by applications in compliance with the OASIS' OpenDocument standard format.
|
OXPS
OpenXPS File (.oxps)
|
PCL
Printer Command Language Document (.pcl)
|
PDF
Portable Document Format File (.pdf) is a type of document created by Adobe back in 1990s.
|
PHP
PHP Source Code File (.php)
|
PL
Perl Script (.pl)
|
PLT
PLT (HPGL) (.plt) is a vector-based plotter file introduced by Autodesk, Inc.
|
PNG
Portable Network Graphic (.png) is a type of raster image file format that use loseless compression.
|
POT
PowerPoint Template (.pot) represents Microsoft PowerPoint template files created by PowerPoint 97-2003 versions.
|
POTM
PowerPoint Open XML Macro-Enabled Presentation Template (.potm) are Microsoft PowerPoint template files with support for Macros.
|
POTX
PowerPoint Open XML Presentation Template (.potx) represents Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above.
|
PPS
PowerPoint Slide Show (.pps) are created using Microsoft PowerPoint for Slide Show purpose.
|
PPSM
PowerPoint Open XML Macro-Enabled Slide (.ppsm) represents Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher.
|
PPSX
PowerPoint Open XML Slide Show (.ppsx) files are created using Microsoft PowerPoint 2007 and above for Slide Show purpose.
|
PPT
PowerPoint Presentation (.ppt) represents PowerPoint file that consists of a collection of slides for displaying as SlideShow.
|
PPTM
PowerPoint Open XML Macro-Enabled Presentation are Macro-enabled Presentation files that are created with Microsoft PowerPoint 2007 or higher versions.
|
PPTX
PowerPoint Open XML Presentation (.pptx) are presentation files created with popular Microsoft PowerPoint application.
|
PROPERTIES
Java Properties File (.properties)
|
PS
PostScript File (.ps)
|
PS1
PowerShell script file (.ps1) a file format for Windows PowerShell Cmdlet files.
|
PSB
Photoshop Large Document Format (.psb) represents Photoshop Large Document Format used for graphics designing and development.
|
PSD
Adobe Photoshop Document (.psd) represents Adobe Photoshop's native file format used for graphics designing and development.
|
PSD1
PowerShell script module manifest (.psd1) a file format for PowerShell module manifest scripts.
|
PSM1
PowerShell script module (.psm1) a file format for PowerShell module scripts.
|
PST
Outlook Personal Information Store File (.pst) represents Outlook Personal Storage Files (also called Personal Storage Table) that store variety of user information.
|
PY
Python Script (.py)
|
RAR
Roshal ARchive (.rar) are compressed files generated using the RAR (WINRAR version 4) compression method.
|
RB
Ruby Source Code (.rb)
|
RST
reStructuredText File (.rst)
|
RTF
Rich Text Format File (.rtf) represents a method of encoding formatted text and graphics for use within applications.
|
SASS
Syntactically Awesome StyleSheets File (.sass)
|
SCALA
Scala Source Code File (.scala)
|
SCM
Scheme Source Code File (.scm)
|
SCRIPT
Generic Script File (.script)
|
SevenZip
7Zip (.7z, .7zip) is free open source archiver with LZMA and LZMA2 compression.
|
SH
Bash Shell Script (.sh)
|
SML
Standard ML Source Code File (.sml)
|
SQL
Structured Query Language Data File (.sql)
|
STL
Stereolithography File (.stl) is an interchangeable file format that represents 3-dimensional surface geometry.
|
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.
|
SVGZ
Scalable Vector Graphics File (.svgz) is a Scalar Vector Graphics file that uses XML based text format, compressed by GZIP for describing the appearance of an image.
|
SXC
StarOffice Calc Spreadsheet (.sxc)
|
TAR
Consolidated Unix File Archive (.tar) are archives created with Unix-based utility for collecting one or more files.
|
TARGZ
Consolidated Unix File Archive (.tgz, .tar.gz) are archives created with Unix-based utility for collecting one or more files.
|
TARXZ
Consolidated Unix File Archive (.txz, .tar.xz) are archives created with Unix-based utility for collecting one or more files.
|
TEX
LaTeX Source Document (.tex) is a language that comprises of programming as well as mark-up features, used to typeset documents.
|
TGA
Truevision TGA (Truevision Advanced Raster Adapter - TARGA) is used to store bitmap digital images developed by TRUEVISION.
|
TGZ
Consolidated Unix File Archive (.tgz, .tar.gz) are archives created with Unix-based utility for collecting one or more files.
|
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.
|
TSV
Tab Separated Values File (.tsv) represents data separated with tabs in plain text format.
|
TXT
Plain Text File (.txt) represents a text document that contains plain text in the form of lines.
|
TXZ
Consolidated Unix File Archive (.txz, .tar.xz) are archives created with Unix-based utility for collecting one or more files.
|
UNKNOWN
Represents unknown file type.
|
VB
Visual Basic Project Item File (.vb) is a source code file created in Visual Basic language that was created by Microsoft for development of .NET applications.
|
VCF
vCard File (.vcf) is a digital file format for storing contact information.
|
VDW
Visio Web Drawing (.vdw) represents file format that specifies the streams and storages required for rendering a Web drawing.
|
VDX
Visio Drawing XML File (.vdx) represents any drawing or chart created in Microsoft Visio, but saved in XML format have .VDX extension.
|
VIM
Vim Settings File (.vim)
|
VSD
Visio Drawing File (.vsd) are drawings created with Microsoft Visio application to represent variety of graphical objects and the interconnection between these.
|
VSDM
Visio Macro-Enabled Drawing (.vsdm) are drawing files created with Microsoft Visio application that supports macros.
|
VSDX
Visio Drawing (.vsdx) represents Microsoft Visio file format introduced from Microsoft Office 2013 onwards.
|
VSS
Visio Stencil File(.vss) are stencil files created with Microsoft Visio 2007 and earlier.
|
VSSM
Visio Macro-Enabled Stencil File (.vssm) are Microsoft Visio Stencil files that support provide support for macros.
|
VSSX
Visio Stencil File (.vssx) are drawing stencils created with Microsoft Visio 2013 and above.
|
VST
Visio Drawing Template (.vst) are vector image files created with Microsoft Visio and act as template for creating further files.
|
VSTM
Visio Macro-Enabled Drawing Template (.vstm) are template files created with Microsoft Visio that support macros.
|
VSTX
Visio Drawing Template (.vstx) are drawing template files created with Microsoft Visio 2013 and above.
|
VSX
Visio Stencil XML File (.vsx) refers to stencils that consist of drawings and shapes that are used for creating diagrams in Microsoft Visio.
|
VTX
Visio Template XML File (.vtx) is a Microsoft Visio drawing template that is saved to disc in XML file format.
|
WEBP
WebP Image (.webp) is a modern raster web image file format that is based on lossless and lossy compression.
|
WMF
Windows Metafile (.wmf) represents Microsoft Windows Metafile (WMF) for storing vector as well as bitmap-format images data.
|
WMZ
ompressed Windows Metafile (.wmz) represents Microsoft Windows Metafile (WMF) compressed in GZIP archvive - for storing vector as well as bitmap-format images data.
|
XLAM
Microsoft Excel Add-in (.xlam)
|
XLS
Excel Spreadsheet (.xls) represents Excel Binary 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.
|
XLSM
Excel Open XML Macro-Enabled Spreadsheet (.xlsm) is a type of Spreasheet files that support macros.
|
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.
|
XLT
Microsoft Excel Template (.xlt) are template files created with Microsoft Excel which is a spreadsheet application which comes as part of Microsoft Office suite.
|
XLTM
Microsoft Excel Macro-Enabled Template (.xltm) represents files that are generated by Microsoft Excel as Macro-enabled template files.
|
XLTX
Excel Open XML Spreadsheet Template (.xltx) represents Microsoft Excel Template that are based on the Office OpenXML file format specifications.
|
XML
XML File (.xml)
|
XPS
XML Paper Specification File (.xps) represents page layout files that are based on XML Paper Specifications created by Microsoft.
|
XZ
XZ file (.xz) is archive compressed a high-ratio compression algorithm based on the LZMA algorithm.
|
YAML
YAML Document (.yaml)
|
ZIP
Zipped File (.zip) represents archives that can hold one or more files or directories.
|
Modifier and Type | Method and Description |
---|---|
static FileType |
fromExtension(String extension)
Maps file extension to file type.
|
static FileType |
fromFilePath(String filePath)
Extracts file extension and maps it to file type.
|
static FileType |
fromMediaType(String mediaType)
Maps file media type to file type e.g.
|
static FileType |
fromStream(InputStream stream)
Detects file type by reading the file signature.
|
static FileType |
fromStream(InputStream stream,
com.groupdocs.foundation.logging.ILogger logger)
Detects file type by reading the file signature.
|
static FileType |
fromStream(InputStream stream,
String password)
Detects file type by reading the file signature.
|
static FileType |
fromStream(InputStream stream,
String password,
com.groupdocs.foundation.logging.ILogger logger)
Detects file type by reading the file signature.
|
String |
getExtension()
Filename suffix (including the period ".") e.g.
|
String |
getFileFormat()
File type name e.g.
|
static List<FileType> |
getSupportedFileTypes()
Retrieves supported file types
|
String |
toString()
Returns a String that represents the current object.
|
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 AI
public static final FileType APNG
public static final FileType AS
ActionScript File (.as)
public static final FileType AS_3
ActionScript File (.as)
public static final FileType ASM
Assembly Language Source Code File (.asm)
public static final FileType BAT
DOS Batch File (.bat)
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.
public static final FileType BZ_2
Bzip2 Compressed File (.bz2) are compressed files generated using the BZIP2 open source compression method, mostly on UNIX or Linux system. Learn more about this file format here.
public static final FileType C
C/C++ Source Code File (.c)
public static final FileType CC
C++ Source Code File (.cc)
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.
public static final FileType CF2
Common File Format File Learn more about this file format here.
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.
public static final FileType CHM
public static final FileType CMAKE
CMake File (.cmake)
public static final FileType CMX
Corel Exchange (.cmx) is a drawing image file that may contain vector graphics as well as bitmap graphics. Learn more about this file format here.
public static final FileType CPP
C++ Source Code File (.cpp)
public static final FileType CS
C# Source Code File (.cs) is a source code file for C# programming language. Introduced by Microsoft for use with the .NET Framework. Learn more about this file format here.
public static final FileType CSS
Cascading Style Sheet (.css)
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.
public static final FileType CXX
C++ Source Code File (.cxx)
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.
public static final FileType DGN
MicroStation Design File (.dgn) are drawings created by and supported by CAD applications such as MicroStation and Intergraph Interactive Graphics Design System. Learn more about this file format here.
public static final FileType DIB
Device Independent Bitmap File (.dib)
public static final FileType DIFF
Patch File (.diff)
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.
public static final FileType DNG
Digital Negative Specification (.dng) is a digital camera image format used for the storage of raw files. It has been developed by Adobe in September 2004. It was basically developed for digital photography. Learn more about this file format here.
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.
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.
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.
public static final FileType DOT
Word Document Template (.dot) are template files created by Microsoft Word to have pre-formatted settings for generation of further DOC or DOCX files. Learn more about this file format here.
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.
public static final FileType DOTX
Word Open XML Document Template (.dotx) are template files created by Microsoft Word to have pre-formatted settings for generation of further DOCX files. Learn more about this file format here.
public static final FileType DWF
Design Web Format File (.dwf) represents 2D/3D drawing in compressed format for viewing, reviewing or printing design files. It contains graphics and text as part of design data and reduce the size of the file due to its compressed format. Learn more about this file format here.
public static final FileType DWFX
Design Web Format File XPS (.dwfx) represents 2D/3D drawing as XPS document in compressed format for viewing, reviewing or printing design files. It contains graphics and text as part of design data and reduce the size of the file due to its compressed format. Learn more about this file format here.
public static final FileType DWG
AutoCAD Drawing Database File (.dwg) represents proprietary binary files used for containing 2D and 3D design data. Like DXF, which are ASCII files, DWG represent the binary file format for CAD (Computer Aided Design) drawings. Learn more about this file format here.
public static final FileType DWT
AutoCAD Drawing Template (.dwt) is an AutoCAD drawing template file that is used as starter for creating drawings that can be saved as DWG files. Learn more about this file format here.
public static final FileType DXF
Drawing Exchange Format File (.dxf) is a tagged data representation of AutoCAD drawing file. Learn more about this file format here.
public static final FileType EMF
Enhanced Windows Metafile (.emf) represents graphical images device-independently. Metafiles 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.
public static final FileType EML
E-Mail Message (.eml) represents email messages saved using Outlook and other relevant applications. Almost all emailing clients support this file format for its compliance with RFC-822 Internet Message Format Standard. Learn more about this file format here.
public static final FileType EMLX
Apple Mail Message (.emlx) is implemented and developed by Apple. The Apple Mail application uses the EMLX file format for exporting the emails. Learn more about this file format here.
public static final FileType EMZ
Enhanced Windows Metafile compressed (.emz) represents graphical images device-independently compressed by GZIP. Metafiles 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.
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.
public static final FileType EPUB
Open eBook File (.epub) is an e-book file format that provide a standard digital publication format for publishers and consumers. The format has been so common by now that it is supported by many e-readers and software applications. Learn more about this file format here.
public static final FileType ERB
Ruby ERB Script (.erb)
public static final FileType EXCEL_2003_XML
Excel 2003 XML (SpreadsheetML) 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.
public static final FileType FBX
Learn more about this file format here.
public static final FileType FODG
Flat XML ODF Template (.fodg) is used by Apache OpenOffice's Draw application to store drawing elements as a vector image. Learn more about this file format here.
public static final FileType FODP
OpenDocument Presentation (.fodp) represents OpenDocument Flat XML Presentation. Learn more about this file format here.
public static final FileType FODS
OpenDocument Flat XML Spreadsheet (.fods)
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.
public static final FileType GROOVY
Groovy Source Code File (.groovy)
public static final FileType GZ
Gnu Zipped File (.gz) are compressed files created with gzip compression application. It can contain multiple compressed files and is commonly used on UNIX and Linux systems. Learn more about this file format here.
public static final FileType GZIP
Gnu Zipped File (.gzip) was introduced as a free utility for replacing the Compress program used in Unix systems. Such files can be opened and extracted with a several applications such as WinZip which is available on both Windows and MacOS. Learn more about this file format here.
public static final FileType H
C/C++/Objective-C Header File (.h)
public static final FileType HAML
Haml Source Code File (.haml)
public static final FileType HH
C++ Header File (.hh)
public static final FileType HPG
PLT (HPGL) (.hpg)
public static final FileType HTM
Hypertext Markup Language File (.htm) is the extension for web pages created for display in browsers. Learn more about this file format here.
public static final FileType HTML
Hypertext Markup Language File (.html) is the extension for web pages created for display in browsers. Learn more about this file format here.
public static final FileType ICO
Icon File (.ico) are image file types used as icon for representation of an application on Microsoft Windows. Learn more about this file format here.
public static final FileType IFC
Industry Foundation Classes File (.ifc) is a file format that establishes international standards to import and export building objects and their properties. This file format provides interoperability between different software applications. Learn more about this file format here.
public static final FileType IGS
Initial Graphics Exchange Specification (IGES) (.igs)
public static final FileType J2C
JPEG 2000 Code InputStream (.j2c)
public static final FileType J2K
JPEG 2000 Code Stream (.j2k) is an image that is compressed using the wavelet compression instead of DCT compression. Learn more about this file format here.
public static final FileType JAVA
Java Source Code File (.java)
public static final FileType JLS
JPEG-LS (JLS) (.jls)
public static final FileType JP_2
JPEG 2000 Core Image File (.jp2) is an image coding system and state-of-the-art image compression standard. Learn more about this file format here.
public static final FileType JPC
JPEG 2000 Code InputStream (.jpc)
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.
public static final FileType JPF
JPEG 2000 Image File (.jpf)
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.
public static final FileType JPM
JPEG 2000 Image File (.jpm)
public static final FileType JPX
JPEG 2000 Image File (.jpx)
public static final FileType JS
JavaScript File (.js)
public static final FileType JSON
JavaScript Object Notation File (.json)
public static final FileType LESS
LESS Style Sheet (.less)
public static final FileType LOG
Log File (.log)
public static final FileType M
Objective-C Implementation File (.m)
public static final FileType MAKE
Xcode Makefile Script (.make)
public static final FileType MBOX
public static final FileType MD
Markdown Documentation File (.md)
public static final FileType MHT
MHTML Web Archive (.mht)
public static final FileType MHTML
MIME HTML File (.mhtml)
public static final FileType ML
ML Source Code File (.ml)
public static final FileType MM
Objective-C++ Source File (.mm)
public static final FileType MOBI
Mobipocket eBook (.mobi) is one of the most widely used ebook file format. The format is an enhancement to the old OEB (Open Ebook Format) format and was used as proprietary format for Mobipocket Reader. Learn more about this file format here.
public static final FileType MPP
Microsoft Project File (.mpp) is Microsoft Project data file that stores information related to project management in an integrated manner. Learn more about this file format here.
public static final FileType MPT
Microsoft Project Template (.mpt) contains basic information and structure along with document settings for creating .MPP files. Learn more about this file format here.
public static final FileType MPX
Microsoft Project Exchange file (.mpx) is an ASCII file format for transferring of project information between Microsoft Project (MSP) and other applications that support the MPX file format such as Primavera Project Planner, Sciforma and Timerline Precision Estimating. Learn more about this file format here.
public static final FileType MSG
Outlook Mail Message (.msg) is a file format used by Microsoft Outlook and Exchange to store email messages, contact, appointment, or other tasks. Learn more about this file format here.
public static final FileType NSF
Lotus Notes Database (.nsf) Learn more about this file format https://fileinfo.com/extension/nsf
public static final FileType NUMBERS
Apple numbers represents Excel like Binary File Format. Such files can be created by Apple numbers application. Learn more about this file format here.
public static final FileType OBJ
Wavefront 3D Object File (.obj) is 3D image file introduced by Wavefront Technologies Learn more about this file format here.
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.
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.
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.
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.
public static final FileType ONE
OneNote Document (.one) is created by Microsoft OneNote application. OneNote lets you gather information using the application as if you are using your draftpad for taking notes. Learn more about this file format here.
public static final FileType OST
Outlook Offline Data File (.ost) represents user's mailbox data in offline mode on local machine upon registration with Exchange Server using Microsoft Outlook. Learn more about this file format here.
public static final FileType OTG
OpenDocument Graphic Template (.otg)
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.
public static final FileType OTS
OpenDocument Spreadsheet Template (.ots)
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.
public static final FileType OXPS
OpenXPS File (.oxps)
public static final FileType PCL
Printer Command Language Document (.pcl)
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.
public static final FileType PHP
PHP Source Code File (.php)
public static final FileType PL
Perl Script (.pl)
public static final FileType PLT
PLT (HPGL) (.plt) is a vector-based plotter file introduced by Autodesk, Inc. and contains information for a certain CAD file. Plotting details require accuracy and precision in production, and usage of PLT file guarantee this as all images are printed using lines instead of dots. Learn more about this file format here.
public static final FileType PNG
Portable Network Graphic (.png) is a type of raster image file format that use loseless 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
public static final FileType PROPERTIES
Java Properties File (.properties)
public static final FileType PS
PostScript File (.ps)
public static final FileType PS1
Learn more about this file format here.
public static final FileType PSB
Photoshop Large Document Format (.psb) represents Photoshop Large Document Format used for graphics designing and development. Learn more about this file format here.
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.
public static final FileType PSD1
Learn more about this file format here.
public static final FileType PSM1
Learn more about this file format here.
public static final FileType PST
Outlook Personal Information Store File (.pst) represents Outlook Personal Storage Files (also called Personal Storage Table) that store variety of user information. Learn more about this file format here.
public static final FileType PY
Python Script (.py)
public static final FileType RAR
Roshal ARchive (.rar) are compressed files generated using the RAR (WINRAR version 4) compression method. Learn more about this file format here.
public static final FileType RB
Ruby Source Code (.rb)
public static final FileType RST
reStructuredText File (.rst)
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.
public static final FileType SASS
Syntactically Awesome StyleSheets File (.sass)
public static final FileType SCALA
Scala Source Code File (.scala)
public static final FileType SCM
Scheme Source Code File (.scm)
public static final FileType SCRIPT
Generic Script File (.script)
public static final FileType SevenZip
7Zip (.7z, .7zip) is free open source archiver with LZMA and LZMA2 compression. Learn more about this file format here.
public static final FileType SH
Bash Shell Script (.sh)
public static final FileType SML
Standard ML Source Code File (.sml)
public static final FileType SQL
Structured Query Language Data File (.sql)
public static final FileType STL
Stereolithography File (.stl) is an interchangeable file format that represents 3-dimensional surface geometry. The file format finds its usage in several fields such as rapid prototyping, 3D printing and computer-aided manufacturing. Learn more about this file format here.
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.
public static final FileType SVGZ
public static final FileType SXC
StarOffice Calc Spreadsheet (.sxc)
public static final FileType TAR
Consolidated Unix File Archive (.tar) are archives created with Unix-based utility for collecting one or more files. Learn more about this file format here.
public static final FileType TARGZ
Consolidated Unix File Archive (.tgz, .tar.gz) are archives created with Unix-based utility for collecting one or more files. Learn more about this file format here.
public static final FileType TARXZ
Consolidated Unix File Archive (.txz, .tar.xz) are archives created with Unix-based utility for collecting one or more files. Learn more about this file format here.
public static final FileType TEX
LaTeX Source Document (.tex) is a language that comprises of programming as well as mark-up features, used to typeset documents. Learn more about this file format here.
public static final FileType TGA
public static final FileType TGZ
Consolidated Unix File Archive (.tgz, .tar.gz) are archives created with Unix-based utility for collecting one or more files. Learn more about this file format here.
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.
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.
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.
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.
public static final FileType TXZ
Consolidated Unix File Archive (.txz, .tar.xz) are archives created with Unix-based utility for collecting one or more files. Learn more about this file format here.
public static final FileType UNKNOWN
Represents unknown file type.
public static final FileType VB
Visual Basic Project Item File (.vb) is a source code file created in Visual Basic language that was created by Microsoft for development of .NET applications. Learn more about this file format here.
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.
public static final FileType VDW
Visio Web Drawing (.vdw) represents file format that specifies the streams and storages required for rendering a Web drawing. Learn more about this file format here.
public static final FileType VDX
Visio Drawing XML File (.vdx) represents any drawing or chart created in Microsoft Visio, but saved in XML format have .VDX extension. A Visio drawing XML file is created in Visio software, which is developed by Microsoft. Learn more about this file format here.
public static final FileType VIM
Vim Settings File (.vim)
public static final FileType VSD
Visio Drawing File (.vsd) are drawings created with Microsoft Visio application to represent variety of graphical objects and the interconnection between these. Learn more about this file format here.
public static final FileType VSDM
Visio Macro-Enabled Drawing (.vsdm) are drawing files created with Microsoft Visio application that supports macros. VSDM files are OPC/XML drawings that are similar to VSDX, but also provide the capability to run macros when the file is opened. Learn more about this file format here.
public static final FileType VSDX
Visio Drawing (.vsdx) represents Microsoft Visio file format introduced from Microsoft Office 2013 onwards. It was developed to replace the binary file format, .VSD, which is supported by earlier versions of Microsoft Visio. Learn more about this file format here.
public static final FileType VSS
Visio Stencil File(.vss) are stencil files created with Microsoft Visio 2007 and earlier. Stencil files provide drawing objects that can be included in a .VSD Visio drawing. Learn more about this file format here.
public static final FileType VSSM
Visio Macro-Enabled Stencil File (.vssm) are Microsoft Visio Stencil files that support provide support for macros. A VSSM file when opened allows to run the macros to achieve desired formatting and placement of shapes in a diagram. Learn more about this file format here.
public static final FileType VSSX
Visio Stencil File (.vssx) are drawing stencils created with Microsoft Visio 2013 and above. The VSSX file format can be opened with Visio 2013 and above. Visio files are known for representation of a variety of drawing elements such as collection of shapes, connectors, flowcharts, network layout, UML diagrams, Learn more about this file format here.
public static final FileType VST
Visio Drawing Template (.vst) are vector image files created with Microsoft Visio and act as template for creating further files. These template files are in binary file format and contain the default layout and settings that are utilized for creation of new Visio drawings. Learn more about this file format here.
public static final FileType VSTM
Visio Macro-Enabled Drawing Template (.vstm) are template files created with Microsoft Visio that support macros. Unlike VSDX files, files created from VSTM templates can run macros that are developed in Visual Basic for Applications (VBA) code. Learn more about this file format here.
public static final FileType VSTX
Visio Drawing Template (.vstx) are drawing template files created with Microsoft Visio 2013 and above. These VSTX files provide starting point for creating Visio drawings, saved as .VSDX files, with default layout and settings. Learn more about this file format here.
public static final FileType VSX
Visio Stencil XML File (.vsx) refers to stencils that consist of drawings and shapes that are used for creating diagrams in Microsoft Visio. VSX files are saved in XML file format and was supported till Visio 2013. Learn more about this file format here.
public static final FileType VTX
Visio Template XML File (.vtx) is a Microsoft Visio drawing template that is saved to disc in XML file format. The template is aimed to provide a file with basic settings that can be used to create multiple Visio files of the same settings. Learn more about this file format here.
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.
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.
public static final FileType WMZ
ompressed Windows Metafile (.wmz) represents Microsoft Windows Metafile (WMF) compressed in GZIP archvive - for storing vector as well as bitmap-format images data. Learn more about this file format here.
public static final FileType XLAM
Microsoft Excel Add-in (.xlam)
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.
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.
public static final FileType XLSM
Excel Open XML Macro-Enabled Spreadsheet (.xlsm) is a type of Spreasheet files that support macros. Learn more about this file format here.
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.
public static final FileType XLT
Microsoft Excel Template (.xlt) are template files created with Microsoft Excel which is a spreadsheet application which comes as part of Microsoft Office suite. Microsoft Office 97-2003 supported creating new XLT files as well as opening these. Learn more about this file format here.
public static final FileType XLTM
Microsoft Excel Macro-Enabled Template (.xltm) represents files that are generated by Microsoft Excel as Macro-enabled template files. XLTM files are similar to XLTX in structure other than that the later doesn't support creating template files with macros. Learn more about this file format here.
public static final FileType XLTX
Excel Open XML Spreadsheet Template (.xltx) represents Microsoft Excel Template that are based on the Office OpenXML file format specifications. It is used to create a standard template file that can be utilized to generate XLSX files that exhibit the same settings as specified in the XLTX file. Learn more about this file format here.
public static final FileType XML
XML File (.xml)
public static final FileType XPS
XML Paper Specification File (.xps) represents page layout files that are based on XML Paper Specifications created by Microsoft. This format was developed by Microsoft as a replacement of EMF file format and is similar to PDF file format, but uses XML in layout, appearance, and printing information of a document. Learn more about this file format here.
public static final FileType XZ
XZ file (.xz) is archive compressed a high-ratio compression algorithm based on the LZMA algorithm. Learn more about this file format here.
public static final FileType YAML
YAML Document (.yaml)
public static FileType fromExtension(String extension)
Maps file extension to file type.
extension
- File extension with or without the period "."UNKNOWN
file type.IllegalArgumentException
- Thrown when extension
is null or empty String.public static FileType fromFilePath(String filePath)
filePath
- The file name or file path.UNKNOWN
file type.public static FileType fromMediaType(String mediaType)
FileType
.PDF.mediaType
- File media type e.g. application/pdf.IllegalArgumentException
- Thrown when mediaType is null or empty String.public static FileType fromStream(InputStream stream)
stream
- The file stream.public static FileType fromStream(InputStream stream, com.groupdocs.foundation.logging.ILogger logger)
stream
- The file stream.logger
- The logger.UNKNOWN
file type.public static FileType fromStream(InputStream stream, String password)
stream
- The file stream.password
- The password to open the file.public static FileType fromStream(InputStream stream, String password, com.groupdocs.foundation.logging.ILogger logger)
stream
- The file stream.password
- The password to open the file.logger
- The logger.UNKNOWN
file type.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 String toString()
Returns a String that represents the current 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);