public interface Recognizer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_TYPE_OCTET_STREAM
This value is returned by #getContentType(byte[])
when the recognizer was not able to determine the
content type of the data snippet.
|
static java.lang.String |
CONTENT_TYPE_UNKNOWN
This value is returned by #getContentType(byte[])
when the recognizer was not able to determine the
content type of the data snippet.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType(byte[] dataSnippet)
Return the base MIME Type of this data.
|
int |
getMinimalDeterminableDataLength()
Return the number of bytes needed to
determine the content type.
|
static final java.lang.String CONTENT_TYPE_UNKNOWN
static final java.lang.String CONTENT_TYPE_OCTET_STREAM
int getMinimalDeterminableDataLength()
java.lang.String getContentType(byte[] dataSnippet)
dataSnippet - the first few bytes of the data file.