com.groupdocs.parser.options

Class FileType



  • public class FileType
    extends Object
    Represents the file type. Provides methods to obtain list of all file types supported by GroupDocs.Parser.
    • Field Detail

      • Unknown

        public static final FileType Unknown
        Represents unknown file type.
      • DOC

        public static final FileType DOC
        Microsoft Word Document (.doc)
      • DOT

        public static final FileType DOT
        Word Document Template (.dot)
      • DOCX

        public static final FileType DOCX
        Microsoft Word Open XML Document (.docx)
      • DOCM

        public static final FileType DOCM
        Word Open XML Macro-Enabled Document (.docm)
      • DOTX

        public static final FileType DOTX
        Word Open XML Document Template (.dotx)
      • DOTM

        public static final FileType DOTM
        Word Open XML Macro-Enabled Document Template (.dotm)
      • TXT

        public static final FileType TXT
        Plain Text File (.txt)
      • TEXT

        public static final FileType TEXT
        Plain Text File (.text)
      • ODT

        public static final FileType ODT
        OpenDocument Text Document (.odt)
      • OTT

        public static final FileType OTT
        OpenDocument Document Template (.ott)
      • RTF

        public static final FileType RTF
        Rich Text Format File (.rtf)
      • PDF

        public static final FileType PDF
        Portable Document Format File (.pdf)
      • HTM

        public static final FileType HTM
        Hypertext Markup Language File (.htm)
      • HTML

        public static final FileType HTML
        Hypertext Markup Language File (.html)
      • XHTML

        public static final FileType XHTML
        Hypertext Markup Language File (.html)
      • MHT

        public static final FileType MHT
        MHTML Web Archive (.mht)
      • MHTML

        public static final FileType MHTML
        MIME HTML File (.mhtml)
      • XML

        public static final FileType XML
        XML File (.xml)
      • MD

        public static final FileType MD
        Markdown files (.md)
      • FB2

        public static final FileType FB2
        FictionBook 2.0 File
      • CHM

        public static final FileType CHM
        Compiled HTML Help File
      • EPUB

        public static final FileType EPUB
        Open eBook File (.epub)
      • XLS

        public static final FileType XLS
        Excel Spreadsheet (.xls)
      • XLSX

        public static final FileType XLSX
        Microsoft Excel Open XML Spreadsheet (.xlsx)
      • XLSM

        public static final FileType XLSM
        Excel Open XML Macro-Enabled Spreadsheet (.xlsm)
      • XLSB

        public static final FileType XLSB
        Excel Binary Spreadsheet (.xlsb)
      • XLT

        public static final FileType XLT
        Microsoft Excel Template (.xlt)
      • XLTX

        public static final FileType XLTX
        Excel Open XML Spreadsheet Template (.xltx)
      • XLTM

        public static final FileType XLTM
        Excel Open XML Macro-Enabled Spreadsheet Template (.xltm)
      • XLA

        public static final FileType XLA
        Excel Add-In File (.xla)
      • XLAM

        public static final FileType XLAM
        Excel Open XML Macro-Enabled Add-In (.xlam)
      • CSV

        public static final FileType CSV
        Comma Separated Values File (.csv)
      • TSV

        public static final FileType TSV
        Tab Separated Values File (.tsv)
      • ODS

        public static final FileType ODS
        OpenDocument Spreadsheet (.ods)
      • OTS

        public static final FileType OTS
        OpenDocument Spreadsheet Template (.ots)
      • NUMBERS

        public static final FileType NUMBERS
        Apple iWork Numbers (.numbers)
      • PPT

        public static final FileType PPT
        PowerPoint Presentation (.ppt)
      • PPTX

        public static final FileType PPTX
        PowerPoint Open XML Presentation (.pptx)
      • PPS

        public static final FileType PPS
        PowerPoint Slide Show (.pps)
      • PPSX

        public static final FileType PPSX
        PowerPoint Open XML Slide Show (.ppsx)
      • ODP

        public static final FileType ODP
        OpenDocument Presentation (.odp)
      • POT

        public static final FileType POT
        PowerPoint Template (.pot)
      • PPTM

        public static final FileType PPTM
        PowerPoint Open XML Macro-Enabled Presentation
      • POTX

        public static final FileType POTX
        PowerPoint Open XML Presentation Template (.potx)
      • POTM

        public static final FileType POTM
        PowerPoint Open XML Macro-Enabled Presentation Template (.potm)
      • PPSM

        public static final FileType PPSM
        PowerPoint Open XML Macro-Enabled Slide (.ppsm)
      • OTP

        public static final FileType OTP
        OpenDocument Presentation Template (.otp)
      • MSG

        public static final FileType MSG
        Outlook Mail Message (.msg)
      • EML

        public static final FileType EML
        E-Mail Message (.eml)
      • EMLX

        public static final FileType EMLX
        Apple Mail Message (.emlx)
      • PST

        public static final FileType PST
        Outlook Personal Information Store File (.pst)
      • OST

        public static final FileType OST
        Outlook Offline Data File (.ost)
      • ONE

        public static final FileType ONE
        OneNote Document (.one)
      • ZIP

        public static final FileType ZIP
        Zipped File (.zip)
      • TIF

        public static final FileType TIF
        Tagged Image File (.tif)
      • TIFF

        public static final FileType TIFF
        Tagged Image File Format (.tiff)
      • JPG

        public static final FileType JPG
        JPEG Image (.jpg)
      • JPEG

        public static final FileType JPEG
        JPEG Image (.jpeg)
      • PNG

        public static final FileType PNG
        Portable Network Graphic (.png)
      • GIF

        public static final FileType GIF
        Graphical Interchange Format File (.gif)
      • BMP

        public static final FileType BMP
        Bitmap Image File (.bmp)
      • ICO

        public static final FileType ICO
        Icon File (.ico)
      • JP2

        public static final FileType JP2
        JPEG 2000 Core Image File (.jp2)
      • JPF

        public static final FileType JPF
        JPEG 2000 Image File (.jpf)
      • JPX

        public static final FileType JPX
        JPEG 2000 Image File (.jpx)
      • JPM

        public static final FileType JPM
        JPEG 2000 Image File (.jpm)
      • J2C

        public static final FileType J2C
        JPEG 2000 Code Stream (.j2c)
      • J2K

        public static final FileType J2K
        JPEG 2000 Code Stream (.j2k)
      • JPC

        public static final FileType JPC
        JPEG 2000 Code Stream (.jpc)
      • DIB

        public static final FileType DIB
        Device Independent Bitmap File (.dib)
      • WMF

        public static final FileType WMF
        Windows Metafile (.wmf)
      • EMF

        public static final FileType EMF
        Enhanced Windows Metafile (.emf)
      • WEBP

        public static final FileType WEBP
        WebP Image (.webp)
      • DJVU

        public static final FileType DJVU
        DjVu Image (.djvu)
      • CGM

        public static final FileType CGM
        Computer Graphics Metafile (.cgm)
      • PCL

        public static final FileType PCL
        Printer Command Language Document (.pcl)
      • PSD

        public static final FileType PSD
        Adobe Photoshop Document (.psd)
      • DCM

        public static final FileType DCM
        DICOM Image (.dcm)
      • PS

        public static final FileType PS
        PostScript File (.ps)
      • EPS

        public static final FileType EPS
        Encapsulated PostScript File (.eps)
      • ODG

        public static final FileType ODG
        OpenDocument Graphic File (.odg)
      • SVG

        public static final FileType SVG
        Scalable Vector Graphics File (.svg)
      • PICT

        public static final FileType PICT
        Macintosh PICT (.pict)
    • Method Detail

      • getFileFormat

        public String getFileFormat()
        File type name e.g. "Microsoft Word Document".
        Returns:
        String that represents a file type.
      • getExtension

        public String getExtension()
        Filename suffix (including the period ".") e.g. ".doc".
        Returns:
        String that represents a file extenstion (including the period ".").
      • 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.
      • getSupportedFileTypes

        public static Iterable<FileType> getSupportedFileTypes()
        Retrieves supported file types
        Returns:
        Returns sequence of supported file types