|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.detect.TypeDetector
public class TypeDetector
Content type detection based on a content type hint. This detector simply trusts any valid content type hint given in the input metadata, and returns that as the likely type of the input document.
Constructor Summary | |
---|---|
TypeDetector()
|
Method Summary | |
---|---|
MediaType |
detect(java.io.InputStream input,
Metadata metadata)
Detects the content type of an input document based on a type hint given in the input metadata. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeDetector()
Method Detail |
---|
public MediaType detect(java.io.InputStream input, Metadata metadata)
detect
in interface Detector
input
- ignoredmetadata
- input metadata, possibly with a CONTENT_TYPE value
application/octet-stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |