FileType
Leave feedback
On this page
Inheritance: java.lang.Object, java.lang.Enum
All Implemented Interfaces: com.aspose.ms.System.IEquatable
public enum FileType extends Enum<FileType> implements System.IEquatable<FileType>
The FileType enum represents the type of a file used in the document comparison process.
It defines different file types such as Word documents, PDF files, and more. Provides methods to obtain list of all file types supported by GroupDocs.Comparison, detect file type by extension etc. Use this enum to specify the file type when working with the GroupDocs.Comparison library.
- Learn more about file formats supported by GroupDocs.Comparison: Full list of supported document formats
- Learn more about getting supported file types in Java: How to get supported file formats in Java
Example usage:
// Set the file type to Word document
final FileType fileType = FileType.DOCX;
// Perform comparison using the specified file type
final LoadOptions loadOptions = new LoadOptions(fileType);
try (Comparer comparer = new Comparer(sourceFile, loadOptions)) {
comparer.add(targetFile);
comparer.compare(resultFile, compareOptions);
}
| Field | Description |
|---|---|
| UNKNOWN | Unknown type |
| AS | ActionScript Programming Language format |
| AS3 | ActionScript Programming Language format |
| ASM | Assembler Programming Language format |
| BAT | Script file in DOS, OS/2 and Microsoft Windows |
| CMD | Script file in DOS, OS/2 and Microsoft Windows |
| C | C-Based Programming Language format |
| H | C-Based header files contain definitions of Functions and Variables |
| Adobe Portable Document format | |
| DOC | Microsoft Word 97-2003 Document |
| DOCM | Microsoft Word Macro-Enabled Document |
| DOCX | Microsoft Word Document |
| DOT | Microsoft Word 97-2003 Template |
| DOTM | Microsoft Word Macro-Enabled Template |
| DOTX | Microsoft Word Template |
| XLS | Microsoft Excel 97-2003 Worksheet |
| XLT | Microsoft Excel template |
| XLSX | Microsoft Excel Worksheet |
| XLTM | Microsoft Excel macro-enabled template |
| XLSB | Microsoft Excel Binary Worksheet |
| XLSM | Microsoft Excel Macro-Enabled Worksheet |
| POT | Microsoft PowerPoint template |
| POTX | Microsoft PowerPoint Template |
| POTM | Microsoft PowerPoint Template with support for Macros |
| PPS | Microsoft PowerPoint 97-2003 Slide Show |
| PPSX | Microsoft PowerPoint Slide Show |
| PPTX | Microsoft PowerPoint Presentation |
| PPT | Microsoft PowerPoint 97-2003 Presentation |
| PPTM | Microsoft PowerPoint Macro-Enabled Presentation |
| PPSM | Microsoft PowerPoint Macro-Enabled Slide Show Presentation |
| VSDX | Microsoft Visio Drawing |
| VSD | Microsoft Visio 2003-2010 Drawing |
| VSS | Microsoft Visio 2003-2010 Stencil |
| VST | Microsoft Visio 2003-2010 Template |
| VDX | Microsoft Visio 2003-2010 XML Drawing |
| ONE | Microsoft OneNote Document |
| ODT | OpenDocument Text |
| ODP | OpenDocument Presentation |
| OTP | OpenDocument Presentation Template |
| ODS | OpenDocument Spreadsheet |
| OTT | OpenDocument Text Template |
| RTF | Rich Text Document |
| TXT | Plain Text Document |
| CSV | Comma Separated Values File |
| HTML | HyperText Markup Language |
| MHTML | Mime HTML |
| MOBI | Mobipocket e-book format |
| DCM | Digital Imaging and Communications in Medicine |
| DJVU | Deja Vu format |
| DWG | Autodesk Design Data Formats |
| DXF | AutoCAD Drawing Interchange |
| BMP | Bitmap Picture |
| GIF | Graphics Interchange Format |
| JPEG | Joint Photographic Experts Group |
| JPG | Joint Photographic Experts Group |
| PNG | Portable Network Graphics |
| SVG | Scalar Vector Graphics |
| EML | E-mail Message |
| EMLX | Apple Mail E-mail File |
| MSG | Microsoft Outlook E-mail Message |
| CAD | CAD file format |
| CPP | C-Based Programming Language format |
| CC | C-Based Programming Language format |
| CXX | C-Based Programming Language format |
| HXX | Header Files that are written in the C++ programming language |
| HH | Header information referenced by a C++ source code file |
| HPP | Header Files that are written in the C++ programming language |
| CMAKE | Tool for managing the build process of software |
| CS | CSharp Programming Language format |
| CSX | CSharp script file format |
| CAKE | CSharp cross-platform build automation system format |
| DIFF | Data comparison tool format |
| PATCH | List of differences format |
| REJ | Rejected files format |
| GROOVY | Source code file written in Groovy format |
| GVY | Source code file written in Groovy format |
| GRADLE | Build-automation system format |
| HAML | Markup language for simplified HTML generation |
| JS | JavaScript Programming Language format |
| ES6 | JavaScript standardised scripting language format |
| MJS | Extension for EcmaScript (ES) module files |
| PAC | Proxy Auto-Configuration file for JavaScript function format |
| JSON | Lightweight format for storing and transporting data |
| BOWERRC | Configuration file for package control on the server-side |
| JSHINTRC | JavaScript code quality tool |
| JSCSRC | JavaScript configuration file format |
| WEBMANIFEST | Manifest file includes information about the app |
| JSMAP | JSON file that contains information on how to translate code back to source code |
| HAR | The HTTP Archive format |
| JAVA | Java Programming Language format |
| LESS | Dynamic preprocessor style sheet language format |
| LOG | Logging keeps a registry of events, processes, messages and communication |
| MAKE | Makefile is a file containing a set of directives used by a make build automation tool to generate a target/goal |
| MK | Makefile is a file containing a set of directives used by a make build automation tool to generate a target/goal |
| MD | Markdown Language format |
| MKD | Markdown Language format |
| MDWN | Markdown Language format |
| MDOWN | Markdown Language format |
| MARKDOWN | Markdown Language format |
| MARKDN | Markdown Language format |
| MDTXT | Markdown Language format |
| MDTEXT | Markdown Language format |
| ML | Caml Programming Language format |
| MLI | Caml Programming Language format |
| OBJC | Objective-C Programming Language format |
| OBJCP | Objective-C++ Programming Language format |
| PHP | PHP Programming Language format |
| PHP4 | PHP Programming Language format |
| PHP5 | PHP Programming Language format |
| PHTML | Standard file extension for PHP 2 programs format |
| CTP | CakePHP Template format |
| PL | Perl Programming Language format |
| PM | Perl module format |
| POD | Perl lightweight markup language format |
| T | Perl test file format |
| PSGI | Interface between web servers and web applications and frameworks written in the Perl programming |
| P6 | Perl Programming Language format |
| PL6 | Perl Programming Language format |
| PM6 | Perl module format |
| NQP | Intermediate language used to build the Rakudo Perl 6 compiler |
| PROP | Properties file format |
| CFG | Configuration file used for storing settings |
| CONF | Configuration file used on Unix and Linux based systems |
| DIR | Directory is a location for storing files on computer |
| PY | Python Programming Language format |
| RPY | Python-based file engine to create and run games |
| PYW | Files used in Windows to indicate a script needs to be run |
| CPY | Controller Python Script format |
| GYP | Build automation tool format |
| GYPI | Build automation tool format |
| PYI | Python Interface file format |
| IPY | IPython Script format |
| RST | Lightweight markup language |
| RB | Ruby Programming Language format |
| ERB | Ruby Programming Language format |
| RJS | Ruby Programming Language format |
| GEMSPEC | Developer file that specifies the attributes of a RubyGems |
| RAKE | Ruby build automation tool |
| RU | Rack configuration file format |
| PODSPEC | Ruby build settings format |
| RBI | Ruby Interface file format |
| SASS | Style sheet language format |
| SCSS | Style sheet language format |
| SCALA | Scala Programming Language format |
| SBT | SBT build tool for Scala format |
| SC | Scala worksheet format |
| SH | Script programmed for bash format |
| BASH | Type of interpreter that processes shell commands |
| BASHRC | File determines the behavior of interactive shells |
| EBUILD | Specialized bash script which automates compilation and installation procedures for software packages |
| SQL | Structured Query Language format |
| DSQL | Dynamic Structured Query Language format |
| VIM | Vim source code file format |
| YAML | Human-readable data-serialization language format |
| YML | Human-readable data-serialization language format |
| Method | Description |
|---|---|
| values() | |
| valueOf(String name) | |
| fromFileNameOrExtension(String value) | Return FileType based on file name or extension |
| getSupportedFileTypes() | Gets list of supported file types |
| areEquals(FileType left, FileType right) | Checks the equality of provided file types |
| areNotEquals(FileType left, FileType right) | Checks are provided file types not equals |
| getFileFormat() | Gets text description of the file type |
| getExtension() | Gets the extension of the file type |
| toString() | Gets string representation of FileType, for example |
| ‘PHP Programming Language format (.php)’ |
|
public static final FileType UNKNOWN
Unknown type
public static final FileType AS
ActionScript Programming Language format
public static final FileType AS3
ActionScript Programming Language format
public static final FileType ASM
Assembler Programming Language format
public static final FileType BAT
Script file in DOS, OS/2 and Microsoft Windows
public static final FileType CMD
Script file in DOS, OS/2 and Microsoft Windows
public static final FileType C
C-Based Programming Language format
public static final FileType H
C-Based header files contain definitions of Functions and Variables
public static final FileType PDF
Adobe Portable Document format
public static final FileType DOC
Microsoft Word 97-2003 Document
public static final FileType DOCM
Microsoft Word Macro-Enabled Document
public static final FileType DOCX
Microsoft Word Document
public static final FileType DOT
Microsoft Word 97-2003 Template
public static final FileType DOTM
Microsoft Word Macro-Enabled Template
public static final FileType DOTX
Microsoft Word Template
public static final FileType XLS
Microsoft Excel 97-2003 Worksheet
public static final FileType XLT
Microsoft Excel template
public static final FileType XLSX
Microsoft Excel Worksheet
public static final FileType XLTM
Microsoft Excel macro-enabled template
public static final FileType XLSB
Microsoft Excel Binary Worksheet
public static final FileType XLSM
Microsoft Excel Macro-Enabled Worksheet
public static final FileType POT
Microsoft PowerPoint template
public static final FileType POTX
Microsoft PowerPoint Template
public static final FileType POTM
Microsoft PowerPoint Template with support for Macros
public static final FileType PPS
Microsoft PowerPoint 97-2003 Slide Show
public static final FileType PPSX
Microsoft PowerPoint Slide Show
public static final FileType PPTX
Microsoft PowerPoint Presentation
public static final FileType PPT
Microsoft PowerPoint 97-2003 Presentation
public static final FileType PPTM
Microsoft PowerPoint Macro-Enabled Presentation
public static final FileType PPSM
Microsoft PowerPoint Macro-Enabled Slide Show Presentation
public static final FileType VSDX
Microsoft Visio Drawing
public static final FileType VSD
Microsoft Visio 2003-2010 Drawing
public static final FileType VSS
Microsoft Visio 2003-2010 Stencil
public static final FileType VST
Microsoft Visio 2003-2010 Template
public static final FileType VDX
Microsoft Visio 2003-2010 XML Drawing
public static final FileType ONE
Microsoft OneNote Document
public static final FileType ODT
OpenDocument Text
public static final FileType ODP
OpenDocument Presentation
public static final FileType OTP
OpenDocument Presentation Template
public static final FileType ODS
OpenDocument Spreadsheet
public static final FileType OTT
OpenDocument Text Template
public static final FileType RTF
Rich Text Document
public static final FileType TXT
Plain Text Document
public static final FileType CSV
Comma Separated Values File
public static final FileType HTML
HyperText Markup Language
public static final FileType MHTML
Mime HTML
public static final FileType MOBI
Mobipocket e-book format
public static final FileType DCM
Digital Imaging and Communications in Medicine
public static final FileType DJVU
Deja Vu format
public static final FileType DWG
Autodesk Design Data Formats
public static final FileType DXF
AutoCAD Drawing Interchange
public static final FileType BMP
Bitmap Picture
public static final FileType GIF
Graphics Interchange Format
public static final FileType JPEG
Joint Photographic Experts Group
public static final FileType JPG
Joint Photographic Experts Group
public static final FileType PNG
Portable Network Graphics
public static final FileType SVG
Scalar Vector Graphics
public static final FileType EML
E-mail Message
public static final FileType EMLX
Apple Mail E-mail File
public static final FileType MSG
Microsoft Outlook E-mail Message
public static final FileType CAD
CAD file format
public static final FileType CPP
C-Based Programming Language format
public static final FileType CC
C-Based Programming Language format
public static final FileType CXX
C-Based Programming Language format
public static final FileType HXX
Header Files that are written in the C++ programming language
public static final FileType HH
Header information referenced by a C++ source code file
public static final FileType HPP
Header Files that are written in the C++ programming language
public static final FileType CMAKE
Tool for managing the build process of software
public static final FileType CS
CSharp Programming Language format
public static final FileType CSX
CSharp script file format
public static final FileType CAKE
CSharp cross-platform build automation system format
public static final FileType DIFF
Data comparison tool format
public static final FileType PATCH
List of differences format
public static final FileType REJ
Rejected files format
public static final FileType GROOVY
Source code file written in Groovy format
public static final FileType GVY
Source code file written in Groovy format
public static final FileType GRADLE
Build-automation system format
public static final FileType HAML
Markup language for simplified HTML generation
public static final FileType JS
JavaScript Programming Language format
public static final FileType ES6
JavaScript standardised scripting language format
public static final FileType MJS
Extension for EcmaScript (ES) module files
public static final FileType PAC
Proxy Auto-Configuration file for JavaScript function format
public static final FileType JSON
Lightweight format for storing and transporting data
public static final FileType BOWERRC
Configuration file for package control on the server-side
public static final FileType JSHINTRC
JavaScript code quality tool
public static final FileType JSCSRC
JavaScript configuration file format
public static final FileType WEBMANIFEST
Manifest file includes information about the app
public static final FileType JSMAP
JSON file that contains information on how to translate code back to source code
public static final FileType HAR
The HTTP Archive format
public static final FileType JAVA
Java Programming Language format
public static final FileType LESS
Dynamic preprocessor style sheet language format
public static final FileType LOG
Logging keeps a registry of events, processes, messages and communication
public static final FileType MAKE
Makefile is a file containing a set of directives used by a make build automation tool to generate a target/goal
public static final FileType MK
Makefile is a file containing a set of directives used by a make build automation tool to generate a target/goal
public static final FileType MD
Markdown Language format
public static final FileType MKD
Markdown Language format
public static final FileType MDWN
Markdown Language format
public static final FileType MDOWN
Markdown Language format
public static final FileType MARKDOWN
Markdown Language format
public static final FileType MARKDN
Markdown Language format
public static final FileType MDTXT
Markdown Language format
public static final FileType MDTEXT
Markdown Language format
public static final FileType ML
Caml Programming Language format
public static final FileType MLI
Caml Programming Language format
public static final FileType OBJC
Objective-C Programming Language format
public static final FileType OBJCP
Objective-C++ Programming Language format
public static final FileType PHP
PHP Programming Language format
public static final FileType PHP4
PHP Programming Language format
public static final FileType PHP5
PHP Programming Language format
public static final FileType PHTML
Standard file extension for PHP 2 programs format
public static final FileType CTP
CakePHP Template format
public static final FileType PL
Perl Programming Language format
public static final FileType PM
Perl module format
public static final FileType POD
Perl lightweight markup language format
public static final FileType T
Perl test file format
public static final FileType PSGI
Interface between web servers and web applications and frameworks written in the Perl programming
public static final FileType P6
Perl Programming Language format
public static final FileType PL6
Perl Programming Language format
public static final FileType PM6
Perl module format
public static final FileType NQP
Intermediate language used to build the Rakudo Perl 6 compiler
public static final FileType PROP
Properties file format
public static final FileType CFG
Configuration file used for storing settings
public static final FileType CONF
Configuration file used on Unix and Linux based systems
public static final FileType DIR
Directory is a location for storing files on computer
public static final FileType PY
Python Programming Language format
public static final FileType RPY
Python-based file engine to create and run games
public static final FileType PYW
Files used in Windows to indicate a script needs to be run
public static final FileType CPY
Controller Python Script format
public static final FileType GYP
Build automation tool format
public static final FileType GYPI
Build automation tool format
public static final FileType PYI
Python Interface file format
public static final FileType IPY
IPython Script format
public static final FileType RST
Lightweight markup language
public static final FileType RB
Ruby Programming Language format
public static final FileType ERB
Ruby Programming Language format
public static final FileType RJS
Ruby Programming Language format
public static final FileType GEMSPEC
Developer file that specifies the attributes of a RubyGems
public static final FileType RAKE
Ruby build automation tool
public static final FileType RU
Rack configuration file format
public static final FileType PODSPEC
Ruby build settings format
public static final FileType RBI
Ruby Interface file format
public static final FileType SASS
Style sheet language format
public static final FileType SCSS
Style sheet language format
public static final FileType SCALA
Scala Programming Language format
public static final FileType SBT
SBT build tool for Scala format
public static final FileType SC
Scala worksheet format
public static final FileType SH
Script programmed for bash format
public static final FileType BASH
Type of interpreter that processes shell commands
public static final FileType BASHRC
File determines the behavior of interactive shells
public static final FileType EBUILD
Specialized bash script which automates compilation and installation procedures for software packages
public static final FileType SQL
Structured Query Language format
public static final FileType DSQL
Dynamic Structured Query Language format
public static final FileType VIM
Vim source code file format
public static final FileType YAML
Human-readable data-serialization language format
public static final FileType YML
Human-readable data-serialization language format
public static FileType[] values()
Returns: com.groupdocs.comparison.result.FileType[]
public static FileType valueOf(String name)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String |
Returns: FileType
public static FileType fromFileNameOrExtension(String value)
Return FileType based on file name or extension
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | File name or extension, not null |
Returns: FileType - the file type
public static List<FileType> getSupportedFileTypes()
Gets list of supported file types
Returns: java.util.List<com.groupdocs.comparison.result.FileType> - list of FileType
public static boolean areEquals(FileType left, FileType right)
Checks the equality of provided file types
Parameters:
| Parameter | Type | Description |
|---|---|---|
| left | FileType | Left FileType object. |
| right | FileType | Right FileType object. |
Returns: boolean - true if equal, otherwise false
public static boolean areNotEquals(FileType left, FileType right)
Checks are provided file types not equals
Parameters:
| Parameter | Type | Description |
|---|---|---|
| left | FileType | Left FileType object. |
| right | FileType | Right FileType object. |
Returns: boolean - true if not equal, otherwise false
public String getFileFormat()
Gets text description of the file type
Returns: java.lang.String - file type descriptiuon
public String getExtension()
Gets the extension of the file type
Returns: java.lang.String - extension of the file type
public String toString()
Gets string representation of FileType, for example ‘PHP Programming Language format (.php)’
Returns: java.lang.String - string representation
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.