public class MagicRecognizer extends java.lang.Object implements Recognizer
MagicRecognizer.CONTENT_TYPE_OCTET_STREAM, CONTENT_TYPE_UNKNOWN| Constructor and Description |
|---|
MagicRecognizer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType(byte[] b)
Return the base MIME Type of this data.
|
static MagicRecognizer |
getInstance() |
int |
getMinimalDeterminableDataLength()
Return the number of bytes needed to
determine the content type.
|
public static MagicRecognizer getInstance()
public int getMinimalDeterminableDataLength()
RecognizergetMinimalDeterminableDataLength in interface Recognizerpublic java.lang.String getContentType(byte[] b)
RecognizergetContentType in interface Recognizerb - the first few bytes of the data file.