com.groupdocs.redaction

Class FileType

    • Method Detail

      • getFileFormat

        public final String getFileFormat()

        Gets file type name, for example "Microsoft Word Document".

        Returns:
        File type name, for example "Microsoft Word Document".
      • getExtension

        public final String getExtension()

        Gets filename suffix (including the period "."), for instance ".doc".

        Returns:
        Filename suffix (including the period "."), for instance ".doc".
      • getUnknown

        public static FileType getUnknown()

        Represents unknown file type.

      • getTIF

        public static FileType getTIF()

        Tagged Image File (.tif)

      • getTIFF

        public static FileType getTIFF()

        Tagged Image File Format (.tiff)

      • getJPG

        public static FileType getJPG()

        JPEG Image (.jpg)

      • getJPEG

        public static FileType getJPEG()

        JPEG Image (.jpeg)

      • getPNG

        public static FileType getPNG()

        Portable Network Graphic (.png)

      • getGIF

        public static FileType getGIF()

        Graphical Interchange Format File (.gif)

      • getBMP

        public static FileType getBMP()

        Bitmap Image File (.bmp)

      • getJP2

        public static FileType getJP2()

        JPEG 2000 Core Image File (.jp2)

      • getHTM

        public static FileType getHTM()

        Hypertext Markup Language File (.htm)

      • getHTML

        public static FileType getHTML()

        Hypertext Markup Language File (.html)

      • getPDF

        public static FileType getPDF()

        Portable Document Format File (.pdf)

      • getPPT

        public static FileType getPPT()

        PowerPoint Presentation (.ppt)

      • getPPTX

        public static FileType getPPTX()

        PowerPoint Open XML Presentation (.pptx)

      • getODP

        public static FileType getODP()

        OpenDocument Presentation (.odp)

      • getXLS

        public static FileType getXLS()

        Excel Spreadsheet (.xls)

      • getXLSX

        public static FileType getXLSX()

        Microsoft Excel Open XML Spreadsheet (.xlsx)

      • getXLSM

        public static FileType getXLSM()

        Excel Open XML Macro-Enabled Spreadsheet (.xlsm)

      • getXLSB

        public static FileType getXLSB()

        Excel Binary Spreadsheet (.xlsb)

      • getCSV

        public static FileType getCSV()

        Comma Separated Values File (.csv)

      • getTSV

        public static FileType getTSV()

        Tab Separated Values File (.tsv)

      • getODS

        public static FileType getODS()

        OpenDocument Spreadsheet (.ods)

      • getOTS

        public static FileType getOTS()

        OpenDocument Spreadsheet Template (.ots)

      • getNUMBERS

        public static FileType getNUMBERS()

        Apple Numbers Spreadsheet (.numbers)

      • getMD

        public static FileType getMD()

        Markdown Documentation File (.md)

      • getDOC

        public static FileType getDOC()

        Microsoft Word Document (.doc)

      • getDOCX

        public static FileType getDOCX()

        Microsoft Word Open XML Document (.docx)

      • getDOCM

        public static FileType getDOCM()

        Word Open XML Macro-Enabled Document (.docm)

      • getDOT

        public static FileType getDOT()

        Word Document Template (.dot)

      • getDOTX

        public static FileType getDOTX()

        Word Open XML Document Template (.dotx)

      • getDOTM

        public static FileType getDOTM()

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

      • getRTF

        public static FileType getRTF()

        Rich Text Format File (.rtf)

      • getTXT

        public static FileType getTXT()

        Plain Text File (.txt)

      • getODT

        public static FileType getODT()

        OpenDocument Text Document (.odt)

      • getOTT

        public static FileType getOTT()

        OpenDocument Document Template (.ott)

      • 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:
        T:System.ArgumentException - Thrown when extension is null or empty string.
      • getSupportedFileTypes

        public static Iterable<FileType> getSupportedFileTypes()

        Retrieves supported file types

        Returns:
        Returns sequence of supported file types
      • equals

        public final boolean equals(FileType other)

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

        Parameters:
        other - The object to compare with the current FileType object.
        Returns:
        true
        if both FileType objects are the same; otherwise,
        false
      • equals

        public boolean equals(Object obj)

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

        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare with the current FileType object.
        Returns:
        true
        if
        obj
        parameter is FileType and is the same as current FileType object; otherwise,
        false
      • hashCode

        public int hashCode()

        Returns the hash code for the current FileType object.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for the current FileType 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.