FileType

Contents
[ ]

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.

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);
 }
 

Fields

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
PDF 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

Methods

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)’

UNKNOWN

public static final FileType UNKNOWN

Unknown type

AS

public static final FileType AS

ActionScript Programming Language format

AS3

public static final FileType AS3

ActionScript Programming Language format

ASM

public static final FileType ASM

Assembler Programming Language format

BAT

public static final FileType BAT

Script file in DOS, OS/2 and Microsoft Windows

CMD

public static final FileType CMD

Script file in DOS, OS/2 and Microsoft Windows

C

public static final FileType C

C-Based Programming Language format

H

public static final FileType H

C-Based header files contain definitions of Functions and Variables

PDF

public static final FileType PDF

Adobe Portable Document format

DOC

public static final FileType DOC

Microsoft Word 97-2003 Document

DOCM

public static final FileType DOCM

Microsoft Word Macro-Enabled Document

DOCX

public static final FileType DOCX

Microsoft Word Document

DOT

public static final FileType DOT

Microsoft Word 97-2003 Template

DOTM

public static final FileType DOTM

Microsoft Word Macro-Enabled Template

DOTX

public static final FileType DOTX

Microsoft Word Template

XLS

public static final FileType XLS

Microsoft Excel 97-2003 Worksheet

XLT

public static final FileType XLT

Microsoft Excel template

XLSX

public static final FileType XLSX

Microsoft Excel Worksheet

XLTM

public static final FileType XLTM

Microsoft Excel macro-enabled template

XLSB

public static final FileType XLSB

Microsoft Excel Binary Worksheet

XLSM

public static final FileType XLSM

Microsoft Excel Macro-Enabled Worksheet

POT

public static final FileType POT

Microsoft PowerPoint template

POTX

public static final FileType POTX

Microsoft PowerPoint Template

POTM

public static final FileType POTM

Microsoft PowerPoint Template with support for Macros

PPS

public static final FileType PPS

Microsoft PowerPoint 97-2003 Slide Show

PPSX

public static final FileType PPSX

Microsoft PowerPoint Slide Show

PPTX

public static final FileType PPTX

Microsoft PowerPoint Presentation

PPT

public static final FileType PPT

Microsoft PowerPoint 97-2003 Presentation

PPTM

public static final FileType PPTM

Microsoft PowerPoint Macro-Enabled Presentation

PPSM

public static final FileType PPSM

Microsoft PowerPoint Macro-Enabled Slide Show Presentation

VSDX

public static final FileType VSDX

Microsoft Visio Drawing

VSD

public static final FileType VSD

Microsoft Visio 2003-2010 Drawing

VSS

public static final FileType VSS

Microsoft Visio 2003-2010 Stencil

VST

public static final FileType VST

Microsoft Visio 2003-2010 Template

VDX

public static final FileType VDX

Microsoft Visio 2003-2010 XML Drawing

ONE

public static final FileType ONE

Microsoft OneNote Document

ODT

public static final FileType ODT

OpenDocument Text

ODP

public static final FileType ODP

OpenDocument Presentation

OTP

public static final FileType OTP

OpenDocument Presentation Template

ODS

public static final FileType ODS

OpenDocument Spreadsheet

OTT

public static final FileType OTT

OpenDocument Text Template

RTF

public static final FileType RTF

Rich Text Document

TXT

public static final FileType TXT

Plain Text Document

CSV

public static final FileType CSV

Comma Separated Values File

HTML

public static final FileType HTML

HyperText Markup Language

MHTML

public static final FileType MHTML

Mime HTML

MOBI

public static final FileType MOBI

Mobipocket e-book format

DCM

public static final FileType DCM

Digital Imaging and Communications in Medicine

DJVU

public static final FileType DJVU

Deja Vu format

DWG

public static final FileType DWG

Autodesk Design Data Formats

DXF

public static final FileType DXF

AutoCAD Drawing Interchange

BMP

public static final FileType BMP

Bitmap Picture

GIF

public static final FileType GIF

Graphics Interchange Format

JPEG

public static final FileType JPEG

Joint Photographic Experts Group

JPG

public static final FileType JPG

Joint Photographic Experts Group

PNG

public static final FileType PNG

Portable Network Graphics

SVG

public static final FileType SVG

Scalar Vector Graphics

EML

public static final FileType EML

E-mail Message

EMLX

public static final FileType EMLX

Apple Mail E-mail File

MSG

public static final FileType MSG

Microsoft Outlook E-mail Message

CAD

public static final FileType CAD

CAD file format

CPP

public static final FileType CPP

C-Based Programming Language format

CC

public static final FileType CC

C-Based Programming Language format

CXX

public static final FileType CXX

C-Based Programming Language format

HXX

public static final FileType HXX

Header Files that are written in the C++ programming language

HH

public static final FileType HH

Header information referenced by a C++ source code file

HPP

public static final FileType HPP

Header Files that are written in the C++ programming language

CMAKE

public static final FileType CMAKE

Tool for managing the build process of software

CS

public static final FileType CS

CSharp Programming Language format

CSX

public static final FileType CSX

CSharp script file format

CAKE

public static final FileType CAKE

CSharp cross-platform build automation system format

DIFF

public static final FileType DIFF

Data comparison tool format

PATCH

public static final FileType PATCH

List of differences format

REJ

public static final FileType REJ

Rejected files format

GROOVY

public static final FileType GROOVY

Source code file written in Groovy format

GVY

public static final FileType GVY

Source code file written in Groovy format

GRADLE

public static final FileType GRADLE

Build-automation system format

HAML

public static final FileType HAML

Markup language for simplified HTML generation

JS

public static final FileType JS

JavaScript Programming Language format

ES6

public static final FileType ES6

JavaScript standardised scripting language format

MJS

public static final FileType MJS

Extension for EcmaScript (ES) module files

PAC

public static final FileType PAC

Proxy Auto-Configuration file for JavaScript function format

JSON

public static final FileType JSON

Lightweight format for storing and transporting data

BOWERRC

public static final FileType BOWERRC

Configuration file for package control on the server-side

JSHINTRC

public static final FileType JSHINTRC

JavaScript code quality tool

JSCSRC

public static final FileType JSCSRC

JavaScript configuration file format

WEBMANIFEST

public static final FileType WEBMANIFEST

Manifest file includes information about the app

JSMAP

public static final FileType JSMAP

JSON file that contains information on how to translate code back to source code

HAR

public static final FileType HAR

The HTTP Archive format

JAVA

public static final FileType JAVA

Java Programming Language format

LESS

public static final FileType LESS

Dynamic preprocessor style sheet language format

LOG

public static final FileType LOG

Logging keeps a registry of events, processes, messages and communication

MAKE

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

MK

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

MD

public static final FileType MD

Markdown Language format

MKD

public static final FileType MKD

Markdown Language format

MDWN

public static final FileType MDWN

Markdown Language format

MDOWN

public static final FileType MDOWN

Markdown Language format

MARKDOWN

public static final FileType MARKDOWN

Markdown Language format

MARKDN

public static final FileType MARKDN

Markdown Language format

MDTXT

public static final FileType MDTXT

Markdown Language format

MDTEXT

public static final FileType MDTEXT

Markdown Language format

ML

public static final FileType ML

Caml Programming Language format

MLI

public static final FileType MLI

Caml Programming Language format

OBJC

public static final FileType OBJC

Objective-C Programming Language format

OBJCP

public static final FileType OBJCP

Objective-C++ Programming Language format

PHP

public static final FileType PHP

PHP Programming Language format

PHP4

public static final FileType PHP4

PHP Programming Language format

PHP5

public static final FileType PHP5

PHP Programming Language format

PHTML

public static final FileType PHTML

Standard file extension for PHP 2 programs format

CTP

public static final FileType CTP

CakePHP Template format

PL

public static final FileType PL

Perl Programming Language format

PM

public static final FileType PM

Perl module format

POD

public static final FileType POD

Perl lightweight markup language format

T

public static final FileType T

Perl test file format

PSGI

public static final FileType PSGI

Interface between web servers and web applications and frameworks written in the Perl programming

P6

public static final FileType P6

Perl Programming Language format

PL6

public static final FileType PL6

Perl Programming Language format

PM6

public static final FileType PM6

Perl module format

NQP

public static final FileType NQP

Intermediate language used to build the Rakudo Perl 6 compiler

PROP

public static final FileType PROP

Properties file format

CFG

public static final FileType CFG

Configuration file used for storing settings

CONF

public static final FileType CONF

Configuration file used on Unix and Linux based systems

DIR

public static final FileType DIR

Directory is a location for storing files on computer

PY

public static final FileType PY

Python Programming Language format

RPY

public static final FileType RPY

Python-based file engine to create and run games

PYW

public static final FileType PYW

Files used in Windows to indicate a script needs to be run

CPY

public static final FileType CPY

Controller Python Script format

GYP

public static final FileType GYP

Build automation tool format

GYPI

public static final FileType GYPI

Build automation tool format

PYI

public static final FileType PYI

Python Interface file format

IPY

public static final FileType IPY

IPython Script format

RST

public static final FileType RST

Lightweight markup language

RB

public static final FileType RB

Ruby Programming Language format

ERB

public static final FileType ERB

Ruby Programming Language format

RJS

public static final FileType RJS

Ruby Programming Language format

GEMSPEC

public static final FileType GEMSPEC

Developer file that specifies the attributes of a RubyGems

RAKE

public static final FileType RAKE

Ruby build automation tool

RU

public static final FileType RU

Rack configuration file format

PODSPEC

public static final FileType PODSPEC

Ruby build settings format

RBI

public static final FileType RBI

Ruby Interface file format

SASS

public static final FileType SASS

Style sheet language format

SCSS

public static final FileType SCSS

Style sheet language format

SCALA

public static final FileType SCALA

Scala Programming Language format

SBT

public static final FileType SBT

SBT build tool for Scala format

SC

public static final FileType SC

Scala worksheet format

SH

public static final FileType SH

Script programmed for bash format

BASH

public static final FileType BASH

Type of interpreter that processes shell commands

BASHRC

public static final FileType BASHRC

File determines the behavior of interactive shells

EBUILD

public static final FileType EBUILD

Specialized bash script which automates compilation and installation procedures for software packages

SQL

public static final FileType SQL

Structured Query Language format

DSQL

public static final FileType DSQL

Dynamic Structured Query Language format

VIM

public static final FileType VIM

Vim source code file format

YAML

public static final FileType YAML

Human-readable data-serialization language format

YML

public static final FileType YML

Human-readable data-serialization language format

values()

public static FileType[] values()

Returns: com.groupdocs.comparison.result.FileType[]

valueOf(String name)

public static FileType valueOf(String name)

Parameters:

Parameter Type Description
name java.lang.String

Returns: FileType

fromFileNameOrExtension(String value)

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

getSupportedFileTypes()

public static List<FileType> getSupportedFileTypes()

Gets list of supported file types

Returns: java.util.List<com.groupdocs.comparison.result.FileType> - list of FileType

areEquals(FileType left, FileType right)

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

areNotEquals(FileType left, FileType right)

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

getFileFormat()

public String getFileFormat()

Gets text description of the file type

Returns: java.lang.String - file type descriptiuon

getExtension()

public String getExtension()

Gets the extension of the file type

Returns: java.lang.String - extension of the file type

toString()

public String toString()

Gets string representation of FileType, for example ‘PHP Programming Language format (.php)’

Returns: java.lang.String - string representation