com.groupdocs.annotation.options

Class FileType

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<FileType>


    public final class FileType
    extends Object
    implements com.aspose.ms.System.IEquatable<FileType>

    Information about file, such as type, extension, etc.

    • Field Detail

      • BMP

        public static FileType BMP

        Bitmap Image File.

      • DOC

        public static FileType DOC

        Microsoft Word format.

      • DOCX

        public static FileType DOCX

        Microsoft Word Open XML format.

      • DWG

        public static FileType DWG

        AutoCAD Drawing Database File.

      • EML

        public static FileType EML

        File in the MIME standard.

      • EMLX

        public static FileType EMLX

        Apple's Mail.app program file format.

      • GIF

        public static FileType GIF

        Graphical Interchange Format File.

      • HTM

        public static FileType HTM

        Hypertext Markup Language File.

      • HTML

        public static FileType HTML

        Hypertext Markup Language File.

      • JPEG

        public static FileType JPEG

        Joint Photographic Experts Group.

      • JPG

        public static FileType JPG

        Joint Photographic Experts Group.

      • MHT

        public static FileType MHT

        MHTML Web Archive.

      • MSG

        public static FileType MSG

        Outlook MSG file format.

      • ODP

        public static FileType ODP

        Open Document Presentation.

      • ONE

        public static FileType ONE

        Microsoft OneNote Document.

      • PDF

        public static FileType PDF

        Adobe Portable Document format.

      • PNG

        public static FileType PNG

        Portable Network Graphic File.

      • PPT

        public static FileType PPT

        Microsoft PowerPoint Presentation.

      • PPTX

        public static FileType PPTX

        Microsoft PowerPoint Open XML Presentation.

      • TIF

        public static FileType TIF

        Tagged Image File.

      • TIFF

        public static FileType TIFF

        Tagged Image File Format

      • UNKNOWN

        public static FileType UNKNOWN

        Unknown.

      • VDX

        public static FileType VDX

        Microsoft Visio VDX xml format.

      • VSD

        public static FileType VSD

        Microsoft Visio VSD binary format.

      • VSDM

        public static FileType VSDM

        Microsoft Visio Macro-Enabled Drawing.

      • VSDX

        public static FileType VSDX

        Microsoft Visio 2013 VSDX file format.

      • VSS

        public static FileType VSS

        Microsoft Visio Stencil File.

      • VSSX

        public static FileType VSSX

        Microsoft Visio Stencil File.

      • VST

        public static FileType VST

        Microsoft Visio VST binary template format.

      • VSTM

        public static FileType VSTM

        Microsoft Visio Macro-Enabled Drawing Template.

      • VSX

        public static FileType VSX

        Microsoft Visio Stencil XML File.

      • VTX

        public static FileType VTX

        Microsoft Visio Template XML File.

      • XLS

        public static FileType XLS

        Microsoft Excel Spreadsheet format.

      • XLSX

        public static FileType XLSX

        Microsoft Excel Open XML Spreadsheet.

    • Method Detail

      • equals

        public final boolean equals(FileType other)

        File type equivalence check.

        Parameters:
        other - FileType object.
        Returns:
        True if file types are equivalent, false if not.
      • equals

        public boolean equals(Object obj)

        Equivalence check with object.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<FileType>
        Overrides:
        equals in class Object
        Parameters:
        obj - Any object.
        Returns:
        True if file types are equivalent, false if not.
      • fromFileNameOrExtension

        public static FileType fromFileNameOrExtension(String fileNameOrExtension)

        Return FileType based on file name or extension.

        Parameters:
        fileNameOrExtension - The file name or file extension.
        Returns:
        The file type.
      • getExtension

        public final String getExtension()

        File extention

        Returns:
      • getFileFormat

        public final String getFileFormat()

        File format

        Returns:
      • getSupportedFileTypes

        public static List<FileType> getSupportedFileTypes()

        Get supported file types enumeration.

        Returns:
        Enumeration of FileType.
      • hashCode

        public int hashCode()

        Get hash code.

        Overrides:
        hashCode in class Object
        Returns:
        Hash code.
      • op_Equality

        public static boolean op_Equality(FileType left,
                          FileType right)

        Operator overload.

        Parameters:
        left - The left file type.
        right - The right file type.
        Returns:
        True if file types are equivalent, false if not.
      • op_Inequality

        public static boolean op_Inequality(FileType left,
                            FileType right)

        Operator overload.

        Parameters:
        left - The left file type.
        right - The right file type.
        Returns:
        True if file types are different, false if not.
      • toString

        public String toString()

        Returns a string that represents the file type.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the file type.