com.groupdocs.watermark.common

Class FileType

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static FileType BMP
      Files having extension .BMP represent Bitmap Image files that are used to store bitmap digital images.
      static FileType DOC
      Files with .doc extension represent documents generated by Microsoft Word or other word processing documents in binary file format.
      static FileType DOCM
      DOCM files are Microsoft Word 2007 or higher generated documents with the ability to run macros.
      static FileType DOCX
      DOCX is a well-known format for Microsoft Word documents.
      static FileType DOT
      Files with .DOT extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOC or DOCX files.
      static FileType DOTM
      A file with DOTM extension represents template file created with Microsoft Word 2007 or higher.
      static FileType DOTX
      Files with DOTX extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOCX files.
      static FileType EML
      EML file format represents email messages saved using Outlook and other relevant applications.
      static FileType EMLX
      The EMLX file format is implemented and developed by Apple.
      static FileType FlatOpc
      Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package (.xml).
      static FileType FlatOpcMacroEnabled
      Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package (.xml).
      static FileType FlatOpcTemplate
      Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package (.xml).
      static FileType FlatOpcTemplateMacroEnabled
      Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package (.xml).
      static FileType GIF
      A GIF or Graphical Interchange Format is a type of highly compressed image.
      static FileType JPEG
      A JPEG is a type of image format that is saved using the method of lossy compression.
      static FileType JPF
      JPEG 2000 (JPF) is an image coding system and state-of-the-art image compression standard.
      static FileType JPG
      A JPEG is a type of image format that is saved using the method of lossy compression.
      static FileType JPM
      JPEG 2000 (JPM) is an image coding system and state-of-the-art image compression standard.
      static FileType JPX
      JPEG 2000 (JPX) is an image coding system and state-of-the-art image compression standard.
      static FileType MSG
      MSG is a file format used by Microsoft Outlook and Exchange to store email messages, contact, appointment, or other tasks.
      static FileType ODT
      ODT files are type of documents created with word processing applications that are based on OpenDocument Text File format.
      static FileType OFT
      Files with .OFT extension represent message template files that are created using Microsoft Outlook.
      static FileType OOXML
      Office open xml file (.ooxml).
      static FileType PDF
      Portable Document Format (PDF) is a type of document created by Adobe back in 1990s.
      static FileType PNG
      PNG, Portable Network Graphics, refers to a type of raster image file format that use loseless compression.
      static FileType POTM
      Files with POTM extension are Microsoft PowerPoint template files with support for Macros.
      static FileType POTX
      Files with .POTX extension represent Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above.
      static FileType PPS
      PPS, PowerPoint Slide Show, files are created using Microsoft PowerPoint for Slide Show purpose.
      static FileType PPSM
      Files with PPSM extension represent Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher.
      static FileType PPSX
      PPSX, Power Point Slide Show, file are created using Microsoft PowerPoint 2007 and above for Slide Show purpose.
      static FileType PPT
      A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow.
      static FileType PPTM
      Files with PPTM extension are Macro-enabled Presentation files that are created with Microsoft PowerPoint 2007 or higher versions.
      static FileType PPTX
      Files with PPTX extension are presentation files created with popular Microsoft PowerPoint application.
      static FileType RTF
      Introduced and documented by Microsoft, the Rich Text Format (RTF) represents a method of encoding formatted text and graphics for use within applications.
      static FileType TIF
      TIFF or TIF, Tagged Image File Format, represents raster images that are meant for usage on a variety of devices that comply with this file format standard.
      static FileType TIFF
      TIFF or TIF, Tagged Image File Format, represents raster images that are meant for usage on a variety of devices that comply with this file format standard.
      static FileType Unknown
      Represents unknown file type.
      static FileType VDW
      VDW is the Visio Graphics Service file format that specifies the streams and storages required for rendering a Web drawing.
      static FileType VDX
      Any drawing or chart created in Microsoft Visio, but saved in XML format have .VDX extension.
      static FileType VSD
      VSD files are drawings created with Microsoft Visio application to represent variety of graphical objects and the interconnection between these.
      static FileType VSDM
      Files with VSDM extension are drawing files created with Microsoft Visio application that supports macros.
      static FileType VSDX
      Files with .VSDX extension represent Microsoft Visio file format introduced from Microsoft Office 2013 onwards.
      static FileType VSS
      VSS are stencil files created with Microsoft Visio 2007 and earlier.
      static FileType VSSM
      Files with .VSSM extension are Microsoft Visio Stencil files that support provide support for macros.
      static FileType VSSX
      Files with .VSSX extension are drawing stencils created with Microsoft Visio 2013 and above.
      static FileType VST
      Files with VST extension are vector image files created with Microsoft Visio and act as template for creating further files.
      static FileType VSTM
      Files with VSTM extension are template files created with Microsoft Visio that support macros.
      static FileType VSTX
      Files with VSTX extensions are drawing template files created with Microsoft Visio 2013 and above.
      static FileType VSX
      Files with .VSX extension refer to stencils that consist of drawings and shapes that are used for creating diagrams in Microsoft Visio.
      static FileType VTX
      A file with VTX extension is a Microsoft Visio drawing template that is saved to disc in XML file format.
      static FileType WEBP
      WebP, introduced by Google, is a modern raster web image file format that is based on lossless and lossy compression.
      static FileType XLS
      Files with XLS extension represent Excel Binary File Format.
      static FileType XLSB
      XLSB file format specifies the Excel Binary File Format, which is a collection of records and structures that specify Excel workbook content.
      static FileType XLSM
      Files with XLSM extension is a type of Spreasheet files that support Macros.
      static FileType XLSX
      XLSX is well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007.
      static FileType XLT
      Files with .XLT extension are template files created with Microsoft Excel which is a spreadsheet application which comes as part of Microsoft Office suite.
      static FileType XLTM
      The XLTM file extension represents files that are generated by Microsoft Excel as Macro-enabled template files.
      static FileType XLTX
      Files with XLTX extension represent Microsoft Excel Template files that are based on the Office OpenXML file format specifications.
    • 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
        VSD files are drawings created with Microsoft Visio application to represent variety of graphical objects and the interconnection between these. Learn more about this file format here.
      • VSDX

        public static final FileType VSDX
        Files with .VSDX extension represent Microsoft Visio file format introduced from Microsoft Office 2013 onwards. Learn more about this file format here.
      • VSS

        public static final FileType VSS
        VSS are stencil files created with Microsoft Visio 2007 and earlier. Stencil files provide drawing objects that can be included in a .VSD Visio drawing. Learn more about this file format here.
      • VSSX

        public static final FileType VSSX
        Files with .VSSX extension are drawing stencils created with Microsoft Visio 2013 and above. Learn more about this file format here.
      • VSDM

        public static final FileType VSDM
        Files with VSDM extension are drawing files created with Microsoft Visio application that supports macros. Learn more about this file format here.
      • VST

        public static final FileType VST
        Files with VST extension are vector image files created with Microsoft Visio and act as template for creating further files. Learn more about this file format here.
      • VSTX

        public static final FileType VSTX
        Files with VSTX extensions are drawing template files created with Microsoft Visio 2013 and above. Learn more about this file format here.
      • VSTM

        public static final FileType VSTM
        Files with VSTM extension are template files created with Microsoft Visio that support macros. Learn more about this file format here.
      • VSSM

        public static final FileType VSSM
        Files with .VSSM extension are Microsoft Visio Stencil files that support provide support for macros. Learn more about this file format here.
      • VSX

        public static final FileType VSX
        Files with .VSX extension refer to stencils that consist of drawings and shapes that are used for creating diagrams in Microsoft Visio. Learn more about this file format here.
      • VTX

        public static final FileType VTX
        A file with VTX extension is a Microsoft Visio drawing template that is saved to disc in XML file format. Learn more about this file format here.
      • VDW

        public static final FileType VDW
        VDW is the Visio Graphics Service file format that specifies the streams and storages required for rendering a Web drawing. Learn more about this file format here.
      • VDX

        public static final FileType VDX
        Any drawing or chart created in Microsoft Visio, but saved in XML format have .VDX extension. Learn more about this file format here.
      • MSG

        public static final FileType MSG
        MSG is a file format used by Microsoft Outlook and Exchange to store email messages, contact, appointment, or other tasks. Learn more about this file format here.
      • EML

        public static final FileType EML
        EML file format represents email messages saved using Outlook and other relevant applications. Learn more about this file format here.
      • EMLX

        public static final FileType EMLX
        The EMLX file format is implemented and developed by Apple. The Apple Mail application uses the EMLX file format for exporting the emails. Learn more about this file format here.
      • OFT

        public static final FileType OFT
        Files with .OFT extension represent message template files that are created using Microsoft Outlook. Learn more about this file format here.
      • TIF

        public static final FileType TIF
        TIFF or TIF, Tagged Image File Format, represents raster images that are meant for usage on a variety of devices that comply with this file format standard. Learn more about this file format here.
      • TIFF

        public static final FileType TIFF
        TIFF or TIF, Tagged Image File Format, represents raster images that are meant for usage on a variety of devices that comply with this file format standard. Learn more about this file format here.
      • JPG

        public static final FileType JPG
        A JPEG is a type of image format that is saved using the method of lossy compression. Learn more about this file format here.
      • JPEG

        public static final FileType JPEG
        A JPEG is a type of image format that is saved using the method of lossy compression. Learn more about this file format here.
      • PNG

        public static final FileType PNG
        PNG, Portable Network Graphics, refers to a type of raster image file format that use loseless compression. Learn more about this file format here.
      • GIF

        public static final FileType GIF
        A GIF or Graphical Interchange Format is a type of highly compressed image. Learn more about this file format here.
      • BMP

        public static final FileType BMP
        Files having extension .BMP represent Bitmap Image files that are used to store bitmap digital images. These images are independent of graphics adapter and are also called device independent bitmap (DIB) file format. Learn more about this file format here.
      • JPF

        public static final FileType JPF
        JPEG 2000 (JPF) is an image coding system and state-of-the-art image compression standard. Designed, using wavelet technology JPEG 2000 can code lossless content in any quality at once. Learn more about this file format here.
      • JPX

        public static final FileType JPX
        JPEG 2000 (JPX) is an image coding system and state-of-the-art image compression standard. Designed, using wavelet technology JPEG 2000 can code lossless content in any quality at once. Learn more about this file format here.
      • JPM

        public static final FileType JPM
        JPEG 2000 (JPM) is an image coding system and state-of-the-art image compression standard. Designed, using wavelet technology JPEG 2000 can code lossless content in any quality at once. Learn more about this file format here.
      • WEBP

        public static final FileType WEBP
        WebP, introduced by Google, is a modern raster web image file format that is based on lossless and lossy compression. It provides same image quality while considerably reducing the image size. Learn more about this file format here.
      • PDF

        public static final FileType PDF
        Portable Document Format (PDF) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. Learn more about this file format here.
      • PPT

        public static final FileType PPT
        A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. Learn more about this file format here.
      • PPTX

        public static final FileType PPTX
        Files with PPTX extension are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. Learn more about this file format here.
      • PPS

        public static final FileType PPS
        PPS, PowerPoint Slide Show, files are created using Microsoft PowerPoint for Slide Show purpose. PPS file reading and creation is supported by Microsoft PowerPoint 97-2003. Learn more about this file format here.
      • PPSX

        public static final FileType PPSX
        PPSX, Power Point Slide Show, file are created using Microsoft PowerPoint 2007 and above for Slide Show purpose. Learn more about this file format here.
      • PPTM

        public static final FileType PPTM
        Files with PPTM extension are Macro-enabled Presentation files that are created with Microsoft PowerPoint 2007 or higher versions. Learn more about this file format here.
      • POTX

        public static final FileType POTX
        Files with .POTX extension represent Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above. Learn more about this file format here.
      • POTM

        public static final FileType POTM
        Files with POTM extension are Microsoft PowerPoint template files with support for Macros. POTM files are created with PowerPoint 2007 or above and contains default settings that can be used to create further presentation files. Learn more about this file format here.
      • PPSM

        public static final FileType PPSM
        Files with PPSM extension represent Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher. Learn more about this file format here.
      • XLS

        public static final FileType XLS
        Files with XLS extension represent Excel Binary File Format. Such files can be created by Microsoft Excel as well as other similar spreadsheet programs such as OpenOffice Calc or Apple Numbers. Learn more about this file format here.
      • XLSX

        public static final FileType XLSX
        XLSX is well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007. Learn more about this file format here.
      • XLSM

        public static final FileType XLSM
        Files with XLSM extension is a type of Spreasheet files that support Macros. Learn more about this file format here.
      • XLTX

        public static final FileType XLTX
        Files with XLTX extension represent Microsoft Excel Template files that are based on the Office OpenXML file format specifications. Learn more about this file format here.
      • XLTM

        public static final FileType XLTM
        The XLTM file extension represents files that are generated by Microsoft Excel as Macro-enabled template files. Learn more about this file format here.
      • XLSB

        public static final FileType XLSB
        XLSB file format specifies the Excel Binary File Format, which is a collection of records and structures that specify Excel workbook content. Learn more about this file format here.
      • XLT

        public static final FileType XLT
        Files with .XLT extension are template files created with Microsoft Excel which is a spreadsheet application which comes as part of Microsoft Office suite. Learn more about this file format here.
      • DOC

        public static final FileType DOC
        Files with .doc extension represent documents generated by Microsoft Word or other word processing documents in binary file format. Learn more about this file format here.
      • DOCX

        public static final FileType DOCX
        DOCX is a well-known format for Microsoft Word documents. Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from plain binary to a combination of XML and binary files. Learn more about this file format here.
      • DOCM

        public static final FileType DOCM
        DOCM files are Microsoft Word 2007 or higher generated documents with the ability to run macros. Learn more about this file format here.
      • DOT

        public static final FileType DOT
        Files with .DOT extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOC or DOCX files. Learn more about this file format here.
      • DOTX

        public static final FileType DOTX
        Files with DOTX extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOCX files. Learn more about this file format here.
      • DOTM

        public static final FileType DOTM
        A file with DOTM extension represents template file created with Microsoft Word 2007 or higher. Learn more about this file format here.
      • RTF

        public static final FileType RTF
        Introduced and documented by Microsoft, the Rich Text Format (RTF) represents a method of encoding formatted text and graphics for use within applications. The format facilitates cross-platform document exchange with other Microsoft Products, thus serving the purpose of interoperability. Learn more about this file format here.
      • ODT

        public static final FileType ODT
        ODT files are type of documents created with word processing applications that are based on OpenDocument Text File format. These are created with word processor applications such as free OpenOffice Writer and can hold content such as text, images, objects and styles. Learn more about this file format here.
      • FlatOpc

        public static final FileType FlatOpc
        Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package (.xml). Learn more about this file format here.
      • 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). Learn more about this file format here.
      • 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). Learn more about this file format here.
      • 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). Learn more about this file format here.
    • Method Detail

      • getFileFormatName

        public final String getFileFormatName()

        Gets the file type name e.g., "Microsoft Word Document".

        Returns:
        The file type name.
      • getExtension

        public final String getExtension()

        Gets the file name suffix (including the period ".") e.g., ".doc".

        Returns:
        The file name suffix (including the period ".").
      • getFormatFamily

        public final int getFormatFamily()

        Gets the format family.

        Returns:
        The format family.
      • equals

        public final boolean equals(FileType other)
        Determines whether the current FileType is the same as the 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 the file extension to the file type.
        Parameters:
        extension - The file extension (including the period ".").
        Returns:
        When the file type is supported returns it, otherwise returns the default FileType.Unknown file type.
        Throws:
        System.ArgumentException - When extension is null or empty string.
      • getSupportedFileTypes

        public static FileType[] getSupportedFileTypes()

        Retrieves the supported file types.

        Returns:
        Returns the sequence of the supported file types.
      • equals

        public boolean equals(Object obj)
        Determines whether the current FileType is the same as the 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 the current FileType object; otherwise, false.
      • hashCode

        public int hashCode()
        Returns a 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.