com.groupdocs.watermark.common

Class FileType



  • public final class FileType
    extends Object

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

    • Field Detail

      • Unknown

        public static final FileType Unknown

        Represents unknown file type.

      • OOXML

        public static final FileType OOXML

        Office open xml file (.ooxml).

      • VSD

        public static final FileType VSD

        Visio Drawing File (.vsd)

      • VSDX

        public static final FileType VSDX

        Visio Drawing (.vsdx)

      • VSS

        public static final FileType VSS

        Visio Stencil File(.vss)

      • VSSX

        public static final FileType VSSX

        Visio Stencil File (.vssx)

      • VSDM

        public static final FileType VSDM

        Visio Macro-Enabled Drawing (.vsdm)

      • VST

        public static final FileType VST

        Visio Drawing Template (.vst)

      • VSTX

        public static final FileType VSTX

        Visio Drawing Template (.vstx)

      • VSTM

        public static final FileType VSTM

        Visio Macro-Enabled Drawing Template (.vstm)

      • VSSM

        public static final FileType VSSM

        Visio Macro-Enabled Stencil File (.vssm)

      • VSX

        public static final FileType VSX

        Visio Stencil XML File (.vsx)

      • VTX

        public static final FileType VTX

        Visio Template XML File (.vtx)

      • VDW

        public static final FileType VDW

        Visio Web Drawing (.vdw)

      • VDX

        public static final FileType VDX

        Visio Drawing XML File (.vdx)

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

      • OFT

        public static final FileType OFT

        Outlook email message template (.oft)

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

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

      • WEBP

        public static final FileType WEBP

        WebP Image (.webp)

      • PDF

        public static final FileType PDF

        Portable Document Format File (.pdf).

      • 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 Presentation Show (.pps)

      • PPSX

        public static final FileType PPSX

        PowerPoint Open XML Presentation Show (.ppsx)

      • 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 Presentation (.ppsm)

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

      • XLTX

        public static final FileType XLTX

        Excel Open XML workbook template (.xltx)

      • XLTM

        public static final FileType XLTM

        Excel Open XML macro-enabled workbook template (.xltm)

      • XLSB

        public static final FileType XLSB

        Excel Binary Spreadsheet (.xlsb)

      • XLT

        public static final FileType XLT

        Excel 97-2003 workbook template (.xlt)

      • DOC

        public static final FileType DOC

        Microsoft Word Document (.doc)

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

      • DOT

        public static final FileType DOT

        Word Document Template (.dot)

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

      • RTF

        public static final FileType RTF

        Rich Text Format File (.rtf)

      • ODT

        public static final FileType ODT

        OpenDocument Text Document (.odt)

      • FlatOpc

        public static final FileType FlatOpc

        Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package (.xml)

      • FlatOpcMacroEnabled

        public static final FileType FlatOpcMacroEnabled

        Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package (.xml)

      • FlatOpcTemplate

        public static final FileType FlatOpcTemplate

        Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package (.xml)

      • FlatOpcTemplateMacroEnabled

        public static final FileType FlatOpcTemplateMacroEnabled

        Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package (.xml)

    • Method Detail

      • getFileFormatName

        public final String getFileFormatName()

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

      • getExtension

        public final String getExtension()

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

      • getFormatFamily

        public final int getFormatFamily()

        Format fammily.

      • 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
      • 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 FileType[] getSupportedFileTypes()

        Retrieves supported file types

        Returns:
        Returns sequence of supported file types
      • 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.