|
Copyright 2012-02-25 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.activation.MultiRecognizer
public class MultiRecognizer
This content type detector serves as a container for a collection of content type detectors.
| Field Summary |
|---|
| Fields inherited from interface ch.randelshofer.activation.Recognizer |
|---|
CONTENT_TYPE_OCTET_STREAM, CONTENT_TYPE_UNKNOWN |
| Constructor Summary | |
|---|---|
MultiRecognizer()
|
|
| Method Summary | |
|---|---|
void |
add(Recognizer detector)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiRecognizer()
| Method Detail |
|---|
public void add(Recognizer detector)
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.
|
Copyright 2012-02-25 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||