com.aspose.diagram
Class FileFormatUtil

java.lang.Object
    extended by com.aspose.diagram.FileFormatUtil

public class FileFormatUtil 
extends java.lang.Object

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


Constructor Summary
FileFormatUtil()
          
 
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.

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.