public class JAIRecognizer extends java.lang.Object implements Recognizer
CONTENT_TYPE_OCTET_STREAM, CONTENT_TYPE_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JAIRecognizer() |
| Modifier and Type | Method and Description |
|---|---|
com.sun.media.jai.codec.ImageCodec |
getCodec(byte[] dataSnippet) |
java.lang.String |
getContentType(byte[] dataSnippet)
Return the base MIME Type of this data.
|
static JAIRecognizer |
getInstance() |
int |
getMinimalDeterminableDataLength()
Return the number of bytes needed to
determine the content type.
|
public static JAIRecognizer getInstance()
public int getMinimalDeterminableDataLength()
getMinimalDeterminableDataLength in interface Recognizerpublic java.lang.String getContentType(byte[] dataSnippet)
getContentType in interface RecognizerdataSnippet - the first few bytes of the data file.public com.sun.media.jai.codec.ImageCodec getCodec(byte[] dataSnippet)