com.aspose.diagram

Class FileFormatUtil

  • java.lang.Object
    • com.aspose.diagram.FileFormatUtil
public class FileFormatUtil 
extends java.lang.Object

Provides utility methods for conveting file format enums to strings or file extensions and back.

Constructor Summary
 
Method Summary
static FileFormatInfodetectFileFormat(java.io.InputStream stream)
Detects and returns the information about a format of a visio stored in a stream.
static FileFormatInfodetectFileFormat(java.lang.String filePath)
Detects and returns the information about a format of a visio stored in a file.
 

    • Constructor Detail

      • FileFormatUtil

        public FileFormatUtil()
    • Method Detail

      • detectFileFormat

        public static FileFormatInfo detectFileFormat(java.io.InputStream stream)
                                                   throws java.lang.Exception
        Detects and returns the information about a format of a visio stored in a stream.
        Parameters:
        stream - The stream
        Returns:
        A FileFormatInfo object that contains the detected information.
      • detectFileFormat

        public static FileFormatInfo detectFileFormat(java.lang.String filePath)
                                                   throws java.lang.Exception
        Detects and returns the information about a format of a visio stored in a file.
        Parameters:
        filePath - The file path.
        Returns:
        A FileFormatInfo object that contains the detected information.