FileFormatUtil

Inheritance: java.lang.Object

public class FileFormatUtil

Provides utility methods to detect file type.

Constructors

ConstructorDescription
FileFormatUtil()

Methods

MethodDescription
detectFileFormat(InputStream stream)Detects and returns the information about a format of a file stored in a stream.
detectFileFormat(String filePath)Detects and returns the information about a format of 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 file stored in a stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamSource stream.

Returns: FileFormatInfo - The result FileFormatInfo

detectFileFormat(String filePath)

public static FileFormatInfo detectFileFormat(String filePath)

Detects and returns the information about a format of a file.

Parameters:

ParameterTypeDescription
filePathjava.lang.StringPath to the source file.

Returns: FileFormatInfo - The result FileFormatInfo

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