com.groupdocs.viewer

Class FileType

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<FileType>


    public final class FileType
    extends Object
    implements com.aspose.ms.System.IEquatable<FileType>

    Represents file type. Provides methods to obtain list of all file types supported by <b>GroupDocs.Viewer</b>.

    • Field Detail

      • AS

        public static final FileType AS

        ActionScript File (.as)

      • AS_3

        public static final FileType AS_3

        ActionScript File (.as)

      • ASM

        public static final FileType ASM

        Assembly Language Source Code File (.asm)

      • BAT

        public static final FileType BAT

        DOS Batch File (.bat)

      • BMP

        public static final FileType BMP

        Bitmap Image File (.bmp)

      • BZ_2

        public static final FileType BZ_2

        Bzip2 Compressed File (.bz2)

      • C

        public static final FileType C

        C/C++ Source Code File (.c)

      • CC

        public static final FileType CC

        C++ Source Code File (.cc)

      • CDR

        public static final FileType CDR

        CorelDraw Vector Graphic Drawing (.cdr)

      • CGM

        public static final FileType CGM

        Computer Graphics Metafile (.cgm)

      • CMAKE

        public static final FileType CMAKE

        CMake File (.cmake)

      • CPP

        public static final FileType CPP

        C++ Source Code File (.cpp)

      • CS

        public static final FileType CS

        Java Source Code File (.cs)

      • CSS

        public static final FileType CSS

        Cascading Style Sheet (.css)

      • CSV

        public static final FileType CSV

        Comma Separated Values File (.csv)

      • CXX

        public static final FileType CXX

        C++ Source Code File (.cxx)

      • DCM

        public static final FileType DCM

        DICOM Image (.dcm)

      • DGN

        public static final FileType DGN

        MicroStation Design File (.dgn)

      • DIB

        public static final FileType DIB

        Device Independent Bitmap File (.dib)

      • DIFF

        public static final FileType DIFF

        Patch File (.diff)

      • DJVU

        public static final FileType DJVU

        DjVu Image (.djvu)

      • DNG

        public static final FileType DNG

        Digital Negative Specification (.dng)

      • DOC

        public static final FileType DOC

        Microsoft Word Document (.doc)

      • DOCM

        public static final FileType DOCM

        Word Open XML Macro-Enabled Document (.docm)

      • DOCX

        public static final FileType DOCX

        Microsoft Word Open XML Document (.docx)

      • DOT

        public static final FileType DOT

        Word Document Template (.dot)

      • DOTM

        public static final FileType DOTM

        Word Open XML Macro-Enabled Document Template (.dotm)

      • DOTX

        public static final FileType DOTX

        Word Open XML Document Template (.dotx)

      • DWF

        public static final FileType DWF

        Design Web Format File (.dwf)

      • DWG

        public static final FileType DWG

        AutoCAD Drawing Database File (.dwg)

      • DXF

        public static final FileType DXF

        Drawing Exchange Format File (.dxf)

      • EMF

        public static final FileType EMF

        Enhanced Windows Metafile (.emf)

      • EML

        public static final FileType EML

        E-Mail Message (.eml)

      • EMLX

        public static final FileType EMLX

        Apple Mail Message (.emlx)

      • EPS

        public static final FileType EPS

        Encapsulated PostScript File (.eps)

      • EPUB

        public static final FileType EPUB

        Open eBook File (.epub)

      • ERB

        public static final FileType ERB

        Ruby ERB Script (.erb)

      • FODS

        public static final FileType FODS

        OpenDocument Flat XML Spreadsheet (.fods)

      • GIF

        public static final FileType GIF

        Graphical Interchange Format File (.gif)

      • GROOVY

        public static final FileType GROOVY

        Groovy Source Code File (.groovy)

      • H

        public static final FileType H

        C/C++/Objective-C Header File (.h)

      • HAML

        public static final FileType HAML

        Haml Source Code File (.haml)

      • HH

        public static final FileType HH

        C++ Header File (.hh)

      • HTM

        public static final FileType HTM

        Hypertext Markup Language File (.htm)

      • HTML

        public static final FileType HTML

        Hypertext Markup Language File (.html)

      • ICO

        public static final FileType ICO

        Icon File (.ico)

      • IFC

        public static final FileType IFC

        Industry Foundation Classes File (.ifc)

      • J2C

        public static final FileType J2C

        JPEG 2000 Code InputStream (.j2c)

      • J2K

        public static final FileType J2K

        JPEG 2000 Code InputStream (.j2k)

      • JAVA

        public static final FileType JAVA

        Java Source Code File (.java)

      • JP_2

        public static final FileType JP_2

        JPEG 2000 Core Image File (.jp2)

      • JPC

        public static final FileType JPC

        JPEG 2000 Code InputStream (.jpc)

      • JPEG

        public static final FileType JPEG

        JPEG Image (.jpeg)

      • JPF

        public static final FileType JPF

        JPEG 2000 Image File (.jpf)

      • JPG

        public static final FileType JPG

        JPEG Image (.jpg)

      • JPM

        public static final FileType JPM

        JPEG 2000 Image File (.jpm)

      • JPX

        public static final FileType JPX

        JPEG 2000 Image File (.jpx)

      • JS

        public static final FileType JS

        JavaScript File (.js)

      • JSON

        public static final FileType JSON

        JavaScript Object Notation File (.json)

      • LESS

        public static final FileType LESS

        LESS Style Sheet (.less)

      • LOG

        public static final FileType LOG

        Log File (.log)

      • M

        public static final FileType M

        Objective-C Implementation File (.m)

      • MAKE

        public static final FileType MAKE

        Xcode Makefile Script (.make)

      • MD

        public static final FileType MD

        Markdown Documentation File (.md)

      • MHT

        public static final FileType MHT

        MHTML Web Archive (.mht)

      • MHTML

        public static final FileType MHTML

        MIME HTML File (.mhtml)

      • ML

        public static final FileType ML

        ML Source Code File (.ml)

      • MM

        public static final FileType MM

        Objective-C++ Source File (.mm)

      • MOBI

        public static final FileType MOBI

        Mobipocket eBook (.mobi)

      • MPP

        public static final FileType MPP

        Microsoft Project File (.mpp)

      • MPT

        public static final FileType MPT

        Microsoft Project Template (.mpt)

      • MPX

        public static final FileType MPX

        Microsoft Project Exchange file (.mpx)

      • MSG

        public static final FileType MSG

        Outlook Mail Message (.msg)

      • ODG

        public static final FileType ODG

        OpenDocument Graphic File (.odg)

      • ODP

        public static final FileType ODP

        OpenDocument Presentation (.odp)

      • ODS

        public static final FileType ODS

        OpenDocument Spreadsheet (.ods)

      • ODT

        public static final FileType ODT

        OpenDocument Text Document (.odt)

      • ONE

        public static final FileType ONE

        OneNote Document (.one)

      • OST

        public static final FileType OST

        Outlook Offline Data File (.ost)

      • OTP

        public static final FileType OTP

        OpenDocument Presentation Template (.otp)

      • OTS

        public static final FileType OTS

        OpenDocument Spreadsheet Template (.ots)

      • OTT

        public static final FileType OTT

        OpenDocument Document Template (.ott)

      • OXPS

        public static final FileType OXPS

        OpenXPS File (.oxps)

      • PCL

        public static final FileType PCL

        Printer Command Language Document (.pcl)

      • PDF

        public static final FileType PDF

        Portable Document Format File (.pdf)

      • PHP

        public static final FileType PHP

        PHP Source Code File (.php)

      • PL

        public static final FileType PL

        Perl Script (.pl)

      • PNG

        public static final FileType PNG

        Portable Network Graphic (.png)

      • POT

        public static final FileType POT

        PowerPoint Template (.pot)

      • POTM

        public static final FileType POTM

        PowerPoint Open XML Macro-Enabled Presentation Template (.potm)

      • POTX

        public static final FileType POTX

        PowerPoint Open XML Presentation Template (.potx)

      • PPS

        public static final FileType PPS

        PowerPoint Slide Show (.pps)

      • PPSM

        public static final FileType PPSM

        PowerPoint Open XML Macro-Enabled Slide (.ppsm)

      • PPSX

        public static final FileType PPSX

        PowerPoint Open XML Slide Show (.ppsx)

      • PPT

        public static final FileType PPT

        PowerPoint Presentation (.ppt)

      • PPTM

        public static final FileType PPTM

        PowerPoint Open XML Macro-Enabled Presentation

      • PPTX

        public static final FileType PPTX

        PowerPoint Open XML Presentation (.pptx)

      • PROPERTIES

        public static final FileType PROPERTIES

        Java Properties File (.properties)

      • PS

        public static final FileType PS

        PostScript File (.ps)

      • PSD

        public static final FileType PSD

        Adobe Photoshop Document (.psd)

      • PST

        public static final FileType PST

        Outlook Personal Information Store File (.pst)

      • PY

        public static final FileType PY

        Python Script (.py)

      • RB

        public static final FileType RB

        Ruby Source Code (.rb)

      • RST

        public static final FileType RST

        reStructuredText File (.rst)

      • RTF

        public static final FileType RTF

        Rich Text Format File (.rtf)

      • SASS

        public static final FileType SASS

        Syntactically Awesome StyleSheets File (.sass)

      • SCALA

        public static final FileType SCALA

        Scala Source Code File (.scala)

      • SCM

        public static final FileType SCM

        Scheme Source Code File (.scm)

      • SCRIPT

        public static final FileType SCRIPT

        Generic Script File (.script)

      • SH

        public static final FileType SH

        Bash Shell Script (.sh)

      • SML

        public static final FileType SML

        Standard ML Source Code File (.sml)

      • SQL

        public static final FileType SQL

        Structured Query Language Data File (.sql)

      • STL

        public static final FileType STL

        Stereolithography File (.stl)

      • SVG

        public static final FileType SVG

        Scalable Vector Graphics File (.svg)

      • SXC

        public static final FileType SXC

        StarOffice Calc Spreadsheet (.sxc)

      • TAR

        public static final FileType TAR

        Consolidated Unix File Archive (.tar)

      • TEX

        public static final FileType TEX

        LaTeX Source Document (.tex)

      • TIF

        public static final FileType TIF

        Tagged Image File (.tif)

      • TIFF

        public static final FileType TIFF

        Tagged Image File Format (.tiff)

      • TSV

        public static final FileType TSV

        Tab Separated Values File (.tsv)

      • TXT

        public static final FileType TXT

        Plain Text File (.txt)

      • UNKNOWN

        public static final FileType UNKNOWN

        Represents unknown file type.

      • VB

        public static final FileType VB

        Visual Basic Project Item File (.vb)

      • VCF

        public static final FileType VCF

        vCard File (.vcf)

      • VDW

        public static final FileType VDW

        Visio Web Drawing (.vdw)

      • VDX

        public static final FileType VDX

        Visio Drawing XML File (.vdx)

      • VIM

        public static final FileType VIM

        Vim Settings File (.vim)

      • VSD

        public static final FileType VSD

        Visio Drawing File (.vsd)

      • VSDM

        public static final FileType VSDM

        Visio Macro-Enabled Drawing (.vsdm)

      • VSDX

        public static final FileType VSDX

        Visio Drawing (.vsdx)

      • VSS

        public static final FileType VSS

        Visio Stencil File(.vss)

      • VSSM

        public static final FileType VSSM

        Visio Macro-Enabled Stencil File (.vssm)

      • VSSX

        public static final FileType VSSX

        Visio Stencil File (.vssx)

      • VST

        public static final FileType VST

        Visio Drawing Template (.vst)

      • VSTM

        public static final FileType VSTM

        Visio Macro-Enabled Drawing Template (.vstm)

      • VSTX

        public static final FileType VSTX

        Visio Drawing Template (.vstx)

      • VSX

        public static final FileType VSX

        Visio Stencil XML File (.vsx)

      • VTX

        public static final FileType VTX

        Visio Template XML File (.vtx)

      • WEBP

        public static final FileType WEBP

        WebP Image (.webp)

      • WMF

        public static final FileType WMF

        Windows Metafile (.wmf)

      • XLAM

        public static final FileType XLAM

        Microsoft Excel Add-in (.xlam)

      • XLS

        public static final FileType XLS

        Excel Spreadsheet (.xls)

      • XLSB

        public static final FileType XLSB

        Excel Binary Spreadsheet (.xlsb)

      • XLSM

        public static final FileType XLSM

        Excel Open XML Macro-Enabled Spreadsheet (.xlsm)

      • XLSX

        public static final FileType XLSX

        Microsoft Excel Open XML Spreadsheet (.xlsx)

      • XLTM

        public static final FileType XLTM

        Microsoft Excel Macro-Enabled Template (.xltm)

      • XLTX

        public static final FileType XLTX

        Microsoft Excel Template (.xltx)

      • XML

        public static final FileType XML

        XML File (.xml)

      • XPS

        public static final FileType XPS

        XML Paper Specification File (.xps)

      • YAML

        public static final FileType YAML

        YAML Document (.yaml)

      • ZIP

        public static final FileType ZIP

        Zipped File (.zip)

    • Method Detail

      • equals

        public boolean equals(Object other)

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<FileType>
        Overrides:
        equals in class Object
        Parameters:
        other - The object to compare with the current FileType object.
        Returns:
        true
        if both FileType objects are the same; otherwise,
        false
      • fromExtension

        public static FileType fromExtension(String extension)

        Maps file extension to file type.

        Parameters:
        extension - File extension (including the period ".").
        Returns:
        When file type is supported returns it, otherwise returns default UNKNOWN file type.
        Throws:
        IllegalArgumentException - Thrown when extension is null or empty string.
      • getExtension

        public final String getExtension()

        Filename suffix (including the period ".") e.g. ".doc".

      • getFileFormat

        public final String getFileFormat()

        File type name e.g. "Microsoft Word Document".

      • getSupportedFileTypes

        public static List<FileType> getSupportedFileTypes()

        Retrieves supported file types

        Returns:
        Returns sequence of supported file types
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • op_Equality

        public static boolean op_Equality(FileType left,
                          FileType right)

        Determines whether two FileType objects are the same.

        Parameters:
        left - Left FileType object.
        right - Right FileType object.
        Returns:
        true
        if both FileType objects are the same; otherwise,
        false
      • op_Inequality

        public static boolean op_Inequality(FileType left,
                            FileType right)

        Determines whether two FileType objects are not the same.

        Parameters:
        left - Left FileType object.
        right - Right FileType object.
        Returns:
        true
        if both FileType objects are not the same; otherwise,
        false
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.