FileFormatUtil

Inheritance: java.lang.Object

public class FileFormatUtil

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

Constructors

ConstructorDescription
FileFormatUtil()

Methods

MethodDescription
detectFileFormat(InputStream stream)Detects and returns the information about a format of a visio stored in a stream.
detectFileFormat(String filePath)Detects and returns the information about a format of a visio stored in a file.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

FileFormatUtil()

public FileFormatUtil()

detectFileFormat(InputStream stream)

public static FileFormatInfo detectFileFormat(InputStream stream)

Detects and returns the information about a format of a visio stored in a stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream

Returns: FileFormatInfo - A FileFormatInfo object that contains the detected information.

detectFileFormat(String filePath)

public static FileFormatInfo detectFileFormat(String filePath)

Detects and returns the information about a format of a visio stored in a file.

Parameters:

ParameterTypeDescription
filePathjava.lang.StringThe file path.

Returns: FileFormatInfo - A FileFormatInfo object that contains the detected information.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int