com.groupdocs.comparison.result

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

        Bmp format

      • CAD

        public static FileType CAD

        CAD format

      • DCM

        public static FileType DCM

        Dicom format

      • DJVU

        public static FileType DJVU

        Djvu format

      • 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

      • HTML

        public static FileType HTML

        Html Markup Document Format

      • JPEG

        public static FileType JPEG

        Jpeg format

      • MHTML

        public static FileType MHTML

        Html Markup Document Format

      • 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

        Png format

      • PPT

        public static FileType PPT

        Microsoft PowerPoint Presentation

      • PPTX

        public static FileType PPTX

        Microsoft PowerPoint Open XML Presentation

      • TXT

        public static FileType TXT

        TXT format

      • UNKNOWN

        public static FileType UNKNOWN

        Unknown type

      • VDX

        public static FileType VDX

        Microsoft Visio VDX xml format

      • VSD

        public static FileType VSD

        Microsoft Visio VSD binary format

      • VSDX

        public static FileType VSDX

        Microsoft Visio 2013 VSDX file format

      • VST

        public static FileType VST

        Microsoft Visio VST binary template format

      • XLS

        public static FileType XLS

        Microsoft Excel Spreadsheet format

      • XLSX

        public static FileType XLSX

        Microsoft Excel Open XML Spreadsheet

    • Method Detail

      • areEquals

        public static boolean areEquals(FileType left,
                        FileType right)

        Operator overload

        Parameters:
        left - Left FileType object.
        right - Right FileType object.
        Returns:
        true if equal
      • areNotEquals

        public static boolean areNotEquals(FileType left,
                           FileType right)

        Operator overload

        Parameters:
        left - Left FileType object.
        right - Right FileType object.
        Returns:
        true if not equal
      • 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 is equivalent, false if not
      • fromFileNameOrExtension

        public static FileType fromFileNameOrExtension(String fileNameOrExtension)

        Return FileType based on file name or extension

        Parameters:
        fileNameOrExtension - File name or extension
      • getExtension

        public String getExtension()

        File extention

      • getFileFormat

        public String getFileFormat()

        File format

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

        public void setExtension(String mExtension)
      • setFileFormat

        public void setFileFormat(String mFileFormat)
      • toString

        public String toString()

        ToString

        Overrides:
        toString in class Object
        Returns:
        string representation