Public API Changes in Aspose.Diagram 6.7.0

Adds detectFileFormat method in FileFormatUtil class

It detects and returns the information about the format of a stored Visio diagram in an input stream. Please check this code example:

Java

 String dataDir = "c:\\temp\\";

// Open the stream. Read only access to load a Visio diagram.

InputStream stream = new FileInputStream(dataDir + "Drawing1.vsdx");

// detect file format using an input stream

FileFormatInfo info = FileFormatUtil.detectFileFormat(stream);

// get the detected file format

System.out.println("The spreadsheet format is: " + info.getFileFormatType());