public class IFFRecognizer extends java.lang.Object implements Recognizer
CONTENT_TYPE_OCTET_STREAM, CONTENT_TYPE_UNKNOWN| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType(byte[] dataSnippet)
Return the base MIME Type of this data.
|
static IFFRecognizer |
getInstance() |
int |
getMinimalDeterminableDataLength()
Return the number of bytes needed to
determine the content type.
|
public static IFFRecognizer getInstance()
public int getMinimalDeterminableDataLength()
getMinimalDeterminableDataLength in interface Recognizerpublic java.lang.String getContentType(byte[] dataSnippet)
Returns "x-iff/*contenttype*" for IFF FORM files, where as
*contenttype* stands for the FORM type. e.g. returns "x-iff/ANIM"
for IFF ANIM files. .
Returns "x-iff/LIST" for IFF LIST files.
Returns "x-iff/CAT" for IFF CAT files.
getContentType in interface RecognizerdataSnippet - the first few bytes of the data file.