FileFormatUtil

Inheritance: java.lang.Object

public class FileFormatUtil

Provides utility methods to detect file type.

Constructors

Constructor Description
FileFormatUtil()

Methods

Method Description
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:

Parameter Type Description
stream java.io.InputStream Source 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:

Parameter Type Description
filePath java.lang.String Path to the source file.

Returns: FileFormatInfo - The result FileFormatInfo

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.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:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int