Packages

 

com.groupdocs.signature.domain.documentpreview

Class FileType

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


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

    Represents file type.

    • Field Detail

      • BMP

        public static final FileType BMP

        Bitmap Image File (.bmp)

      • CGM

        public static final FileType CGM

        Computer Graphics Metafile (.cgm)

      • CSV

        public static final FileType CSV

        Comma Separated Values File (.csv)

      • DCM

        public static final FileType DCM

        DICOM Image (.dcm)

      • DJVU

        public static final FileType DJVU

        DjVu Image (.djvu)

      • DOC

        public static final FileType DOC

        Microsoft Word Document (.doc)

      • DOCM

        public static final FileType DOCM

        Word Open XML Macro-Enabled Document (.docm)

      • DOCX

        public static final FileType DOCX

        Microsoft Word Open XML Document (.docx)

      • DOT

        public static final FileType DOT

        Word Document Template (.dot)

      • DOTM

        public static final FileType DOTM

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

      • DOTX

        public static final FileType DOTX

        Word Open XML Document Template (.dotx)

      • EMF

        public static final FileType EMF

        Enhanced Windows Metafile (.emf)

      • EPS

        public static final FileType EPS

        Encapsulated PostScript File (.eps)

      • GIF

        public static final FileType GIF

        Graphical Interchange Format File (.gif)

      • JPEG

        public static final FileType JPEG

        JPEG Image (.jpeg)

      • JPG

        public static final FileType JPG

        JPEG Image (.jpg)

      • ODG

        public static final FileType ODG

        OpenDocument Graphic File (.odg)

      • ODP

        public static final FileType ODP

        OpenDocument Presentation (.odp)

      • ODS

        public static final FileType ODS

        OpenDocument Spreadsheet (.ods)

      • ODT

        public static final FileType ODT

        OpenDocument Text Document (.odt)

      • OTP

        public static final FileType OTP

        OpenDocument Presentation Template (.otp)

      • OTS

        public static final FileType OTS

        OpenDocument Spreadsheet Template (.ots)

      • OTT

        public static final FileType OTT

        OpenDocument Document Template (.ott)

      • PCL

        public static final FileType PCL

        Printer Command Language Document (.pcl)

      • PDF

        public static final FileType PDF

        Portable Document Format File (.pdf)

      • PNG

        public static final FileType PNG

        Portable Network Graphic (.png)

      • POT

        public static final FileType POT

        PowerPoint Template (.pot)

      • POTM

        public static final FileType POTM

        PowerPoint Open XML Macro-Enabled Presentation Template (.potm)

      • POTX

        public static final FileType POTX

        PowerPoint Open XML Presentation Template (.potx)

      • PPS

        public static final FileType PPS

        PowerPoint Slide Show (.pps)

      • PPSM

        public static final FileType PPSM

        PowerPoint Open XML Macro-Enabled Slide (.ppsm)

      • PPSX

        public static final FileType PPSX

        PowerPoint Open XML Slide Show (.ppsx)

      • PPT

        public static final FileType PPT

        PowerPoint Presentation (.ppt)

      • PPTM

        public static final FileType PPTM

        PowerPoint Open XML Macro-Enabled Presentation

      • PPTX

        public static final FileType PPTX

        PowerPoint Open XML Presentation (.pptx)

      • PS

        public static final FileType PS

        PostScript File (.ps)

      • PSD

        public static final FileType PSD

        Adobe Photoshop Document (.psd)

      • RTF

        public static final FileType RTF

        Rich Text Format File (.rtf)

      • SVG

        public static final FileType SVG

        Scalable Vector Graphics File (.svg)

      • TIF

        public static final FileType TIF

        Tagged Image File (.tif)

      • TIFF

        public static final FileType TIFF

        Tagged Image File Format (.tiff)

      • TSV

        public static final FileType TSV

        Tab Separated Values File (.tsv)

      • TXT

        public static final FileType TXT

        Plain Text File (.txt)

      • Unknown

        public static final FileType Unknown

        Represents unknown file type.

      • VCF

        public static final FileType VCF

        vCard File (.vcf)

      • WEBP

        public static final FileType WEBP

        WebP Image (.webp)

      • WMF

        public static final FileType WMF

        Windows Metafile (.wmf)

      • WPD

        public static final FileType WPD

        WordPerfect Document (.wpd)

      • XLS

        public static final FileType XLS

        Excel Spreadsheet (.xls)

      • XLSB

        public static final FileType XLSB

        Excel Binary Spreadsheet (.xlsb)

      • XLSM

        public static final FileType XLSM

        Excel Open XML Macro-Enabled Spreadsheet (.xlsm)

      • XLSX

        public static final FileType XLSX

        Microsoft Excel Open XML Spreadsheet (.xlsx)

    • Method Detail

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<FileType>
        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
      • 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:
        com.aspose.ms.System.ArgumentException - Thrown when extension is null or empty string.
      • getExtension

        public final String getExtension()

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

      • getFileFormat

        public final String getFileFormat()

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

      • getSupportedFileTypes

        public static List<FileType> getSupportedFileTypes()

        Retrieves supported file types

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