com.groupdocs.search.results

Class FileType



  • public class FileType
    extends Object

    Represents the file type.

    • Field Detail

      • Formats

        protected static final FileType[] Formats
      • Unknown

        public static final FileType Unknown

        Represents unknown file type.

      • FB2

        public static final FileType FB2

        Represents FB2 file type.

      • TXT

        public static final FileType TXT

        Represents TXT file type.

      • PPT

        public static final FileType PPT

        Represents PPT file type.

      • ODT

        public static final FileType ODT

        Represents ODT file type.

      • OTT

        public static final FileType OTT

        Represents OTT file type.

      • DOT

        public static final FileType DOT

        Represents DOT file type.

      • POT

        public static final FileType POT

        Represents POT file type.

      • PST

        public static final FileType PST

        Represents PST file type.

      • OST

        public static final FileType OST

        Represents OST file type.

      • DOC

        public static final FileType DOC

        Represents DOC file type.

      • DOCX

        public static final FileType DOCX

        Represents DOCX file type.

      • XLSX

        public static final FileType XLSX

        Represents XLSX file type.

      • PPSX

        public static final FileType PPSX

        Represents PPSX file type.

      • PPTX

        public static final FileType PPTX

        Represents PPTX file type.

      • XLTX

        public static final FileType XLTX

        Represents XLTX file type.

      • DOTX

        public static final FileType DOTX

        Represents DOTX file type.

      • POTX

        public static final FileType POTX

        Represents POTX file type.

      • XLS

        public static final FileType XLS

        Represents XLS file type.

      • XLT

        public static final FileType XLT

        Represents XLT file type.

      • ODS

        public static final FileType ODS

        Represents ODS file type.

      • OTS

        public static final FileType OTS

        Represents OTS file type.

      • PPS

        public static final FileType PPS

        Represents PPS file type.

      • PDF

        public static final FileType PDF

        Represents PDF file type.

      • RTF

        public static final FileType RTF

        Represents RTF file type.

      • XLSM

        public static final FileType XLSM

        Represents XLSM file type.

      • PPSM

        public static final FileType PPSM

        Represents PPSM file type.

      • XLTM

        public static final FileType XLTM

        Represents XLTM file type.

      • DOTM

        public static final FileType DOTM

        Represents DOTM file type.

      • PPTM

        public static final FileType PPTM

        Represents PPTM file type.

      • DOCM

        public static final FileType DOCM

        Represents DOCM file type.

      • XLSB

        public static final FileType XLSB

        Represents XLSB file type.

      • EPUB

        public static final FileType EPUB

        Represents EPUB file type.

      • ODP

        public static final FileType ODP

        Represents ODP file type.

      • ONE

        public static final FileType ONE

        Represents ONE file type.

      • ZIP

        public static final FileType ZIP

        Represents ZIP file type.

      • CHM

        public static final FileType CHM

        Represents CHM file type.

      • EML

        public static final FileType EML

        Represents EML file type.

      • EMLX

        public static final FileType EMLX

        Represents EMLX file type.

      • MSG

        public static final FileType MSG

        Represents MSG file type.

      • MD

        public static final FileType MD

        Represents MD file type.

      • POTM

        public static final FileType POTM

        Represents POTM file type.

      • CSV

        public static final FileType CSV

        Represents CSV file type.

      • XML

        public static final FileType XML

        Represents XML file type.

      • TSV

        public static final FileType TSV

        Represents TSV file type.

      • HTM

        public static final FileType HTM

        Represents HTM file type.

      • HTML

        public static final FileType HTML

        Represents HTML file type.

      • XHTML

        public static final FileType XHTML

        Represents XHTML file type.

      • MHT

        public static final FileType MHT

        Represents MHT file type.

      • MHTML

        public static final FileType MHTML

        Represents MHTML file type.

      • MP3

        public static final FileType MP3

        Represents MP3 file type.

      • WAV

        public static final FileType WAV

        Represents WAV file type.

      • BMP

        public static final FileType BMP

        Represents BMP file type.

      • DJVU

        public static final FileType DJVU

        Represents DJVU file type.

      • DJV

        public static final FileType DJV

        Represents DJV file type.

      • GIF

        public static final FileType GIF

        Represents GIF file type.

      • JPG

        public static final FileType JPG

        Represents JPG file type.

      • JPE

        public static final FileType JPE

        Represents JPE file type.

      • JPEG

        public static final FileType JPEG

        Represents JPEG file type.

      • JP2

        public static final FileType JP2

        Represents JP2 file type.

      • PNG

        public static final FileType PNG

        Represents PNG file type.

      • TIFF

        public static final FileType TIFF

        Represents TIFF file type.

      • TIF

        public static final FileType TIF

        Represents TIF file type.

      • WEBP

        public static final FileType WEBP

        Represents WEBP file type.

      • EMF

        public static final FileType EMF

        Represents EMF file type.

      • WMF

        public static final FileType WMF

        Represents WMF file type.

      • PSD

        public static final FileType PSD

        Represents PSD file type.

      • MPP

        public static final FileType MPP

        Represents MPP file type.

      • TORRENT

        public static final FileType TORRENT

        Represents TORRENT file type.

      • VSD

        public static final FileType VSD

        Represents VSD file type.

      • VSS

        public static final FileType VSS

        Represents VSS file type.

      • DCM

        public static final FileType DCM

        Represents DCM file type.

      • DC3

        public static final FileType DC3

        Represents DC3 file type.

      • DIC

        public static final FileType DIC

        Represents DIC file type.

      • AVI

        public static final FileType AVI

        Represents AVI file type.

      • MOV

        public static final FileType MOV

        Represents MOV file type.

      • QT

        public static final FileType QT

        Represents QT file type.

      • FLV

        public static final FileType FLV

        Represents FLV file type.

      • ASF

        public static final FileType ASF

        Represents ASF file type.

      • XLA

        public static final FileType XLA

        Represents XLA file type.

      • XLAM

        public static final FileType XLAM

        Represents XLAM file type.

    • Constructor Detail

      • FileType

        protected FileType(String description,
                String extension,
                FormatFamily formatFamily)

        Initializes a new instance of the FileType class.

        Parameters:
        description - The file type description.
        extension - The file extension.
        formatFamily - The format family.
    • Method Detail

      • getDescription

        public final String getDescription()

        Gets the file type description.

        Returns:
        The file type description.
      • getExtension

        public final String getExtension()

        Gets the file extension.

        Returns:
        The file extension.
      • getFormatFamily

        public final FormatFamily getFormatFamily()

        Gets the format family.

        Returns:
        The format family.
      • toString

        public String toString()

        Returns a String that represents the current FileType.

        Overrides:
        toString in class Object
        Returns:
        A String that represents the current FileType.
      • getIndex

        protected static int getIndex(FileType fileType)
      • getSupportedFileTypes

        public static Iterable<FileType> getSupportedFileTypes()

        Retrieves supported file types.

        Returns:
        A collection of supported file types.