com.groupdocs.viewer

Enum FileType

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


    public enum FileType
    extends Enum<FileType>
    implements com.aspose.ms.System.IEquatable<FileType>

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

    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      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)
      BZ_2
      Bzip2 Compressed File (.bz2)
      C
      C/C++ Source Code File (.c)
      CC
      C++ Source Code File (.cc)
      CDR
      CorelDraw Vector Graphic Drawing (.cdr)
      CGM
      Computer Graphics Metafile (.cgm)
      CMAKE
      CMake File (.cmake)
      CPP
      C++ Source Code File (.cpp)
      CS
      Java Source Code File (.cs)
      CSS
      Cascading Style Sheet (.css)
      CSV
      Comma Separated Values File (.csv)
      CXX
      C++ Source Code File (.cxx)
      DCM
      DICOM Image (.dcm)
      DGN
      MicroStation Design File (.dgn)
      DIB
      Device Independent Bitmap File (.dib)
      DIFF
      Patch File (.diff)
      DJVU
      DjVu Image (.djvu)
      DNG
      Digital Negative Specification (.dng)
      DOC
      Microsoft Word Document (.doc)
      DOCM
      Word Open XML Macro-Enabled Document (.docm)
      DOCX
      Microsoft Word Open XML Document (.docx)
      DOT
      Word Document Template (.dot)
      DOTM
      Word Open XML Macro-Enabled Document Template (.dotm)
      DOTX
      Word Open XML Document Template (.dotx)
      DWF
      Design Web Format File (.dwf)
      DWG
      AutoCAD Drawing Database File (.dwg)
      DWT
      AutoCAD Drawing Template (.dwt)
      DXF
      Drawing Exchange Format File (.dxf)
      EMF
      Enhanced Windows Metafile (.emf)
      EML
      E-Mail Message (.eml)
      EMLX
      Apple Mail Message (.emlx)
      EPS
      Encapsulated PostScript File (.eps)
      EPUB
      Open eBook File (.epub)
      ERB
      Ruby ERB Script (.erb)
      FODS
      OpenDocument Flat XML Spreadsheet (.fods)
      GIF
      Graphical Interchange Format File (.gif)
      GROOVY
      Groovy Source Code File (.groovy)
      H
      C/C++/Objective-C Header File (.h)
      HAML
      Haml Source Code File (.haml)
      HH
      C++ Header File (.hh)
      HTM
      Hypertext Markup Language File (.htm)
      HTML
      Hypertext Markup Language File (.html)
      ICO
      Icon File (.ico)
      IFC
      Industry Foundation Classes File (.ifc)
      J2C
      JPEG 2000 Code InputStream (.j2c)
      J2K
      JPEG 2000 Code InputStream (.j2k)
      JAVA
      Java Source Code File (.java)
      JP_2
      JPEG 2000 Core Image File (.jp2)
      JPC
      JPEG 2000 Code InputStream (.jpc)
      JPEG
      JPEG Image (.jpeg)
      JPF
      JPEG 2000 Image File (.jpf)
      JPG
      JPEG Image (.jpg)
      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)
      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)
      MPP
      Microsoft Project File (.mpp)
      MPT
      Microsoft Project Template (.mpt)
      MPX
      Microsoft Project Exchange file (.mpx)
      MSG
      Outlook Mail Message (.msg)
      ODG
      OpenDocument Graphic File (.odg)
      ODP
      OpenDocument Presentation (.odp)
      ODS
      OpenDocument Spreadsheet (.ods)
      ODT
      OpenDocument Text Document (.odt)
      ONE
      OneNote Document (.one)
      OST
      Outlook Offline Data File (.ost)
      OTG
      OpenDocument Graphic Template (.otg)
      OTP
      OpenDocument Presentation Template (.otp)
      OTS
      OpenDocument Spreadsheet Template (.ots)
      OTT
      OpenDocument Document Template (.ott)
      OXPS
      OpenXPS File (.oxps)
      PCL
      Printer Command Language Document (.pcl)
      PDF
      Portable Document Format File (.pdf)
      PHP
      PHP Source Code File (.php)
      PL
      Perl Script (.pl)
      PNG
      Portable Network Graphic (.png)
      POT
      PowerPoint Template (.pot)
      POTM
      PowerPoint Open XML Macro-Enabled Presentation Template (.potm)
      POTX
      PowerPoint Open XML Presentation Template (.potx)
      PPS
      PowerPoint Slide Show (.pps)
      PPSM
      PowerPoint Open XML Macro-Enabled Slide (.ppsm)
      PPSX
      PowerPoint Open XML Slide Show (.ppsx)
      PPT
      PowerPoint Presentation (.ppt)
      PPTM
      PowerPoint Open XML Macro-Enabled Presentation
      PPTX
      PowerPoint Open XML Presentation (.pptx)
      PROPERTIES
      Java Properties File (.properties)
      PS
      PostScript File (.ps)
      PSD
      Adobe Photoshop Document (.psd)
      PST
      Outlook Personal Information Store File (.pst)
      PY
      Python Script (.py)
      RB
      Ruby Source Code (.rb)
      RST
      reStructuredText File (.rst)
      RTF
      Rich Text Format File (.rtf)
      SASS
      Syntactically Awesome StyleSheets File (.sass)
      SCALA
      Scala Source Code File (.scala)
      SCM
      Scheme Source Code File (.scm)
      SCRIPT
      Generic Script File (.script)
      SH
      Bash Shell Script (.sh)
      SML
      Standard ML Source Code File (.sml)
      SQL
      Structured Query Language Data File (.sql)
      STL
      Stereolithography File (.stl)
      SVG
      Scalable Vector Graphics File (.svg)
      SXC
      StarOffice Calc Spreadsheet (.sxc)
      TAR
      Consolidated Unix File Archive (.tar)
      TEX
      LaTeX Source Document (.tex)
      TIF
      Tagged Image File (.tif)
      TIFF
      Tagged Image File Format (.tiff)
      TSV
      Tab Separated Values File (.tsv)
      TXT
      Plain Text File (.txt)
      UNKNOWN
      Represents unknown file type.
      VB
      Visual Basic Project Item File (.vb)
      VCF
      vCard File (.vcf)
      VDW
      Visio Web Drawing (.vdw)
      VDX
      Visio Drawing XML File (.vdx)
      VIM
      Vim Settings File (.vim)
      VSD
      Visio Drawing File (.vsd)
      VSDM
      Visio Macro-Enabled Drawing (.vsdm)
      VSDX
      Visio Drawing (.vsdx)
      VSS
      Visio Stencil File(.vss)
      VSSM
      Visio Macro-Enabled Stencil File (.vssm)
      VSSX
      Visio Stencil File (.vssx)
      VST
      Visio Drawing Template (.vst)
      VSTM
      Visio Macro-Enabled Drawing Template (.vstm)
      VSTX
      Visio Drawing Template (.vstx)
      VSX
      Visio Stencil XML File (.vsx)
      VTX
      Visio Template XML File (.vtx)
      WEBP
      WebP Image (.webp)
      WMF
      Windows Metafile (.wmf)
      XLAM
      Microsoft Excel Add-in (.xlam)
      XLS
      Excel Spreadsheet (.xls)
      XLSB
      Excel Binary Spreadsheet (.xlsb)
      XLSM
      Excel Open XML Macro-Enabled Spreadsheet (.xlsm)
      XLSX
      Microsoft Excel Open XML Spreadsheet (.xlsx)
      XLTM
      Microsoft Excel Macro-Enabled Template (.xltm)
      XLTX
      Microsoft Excel Template (.xltx)
      XML
      XML File (.xml)
      XPS
      XML Paper Specification File (.xps)
      YAML
      YAML Document (.yaml)
      ZIP
      Zipped File (.zip)
    • Enum Constant 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)

      • DWT

        public static final FileType DWT

        AutoCAD Drawing Template (.dwt)

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

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

      • OTG

        public static final FileType OTG

        OpenDocument Graphic Template (.otg)

      • 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

      • equalsByName

        public boolean equalsByName(String name)
      • 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
      • isEqualTo

        public static boolean isEqualTo(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
      • isNotEqualTo

        public static boolean isNotEqualTo(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 Enum<FileType>
        Returns:
        A string that represents the current object.
      • valueOf

        public static FileType valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • values

        public static FileType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FileType c : FileType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared