|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.detect.ZipContainerDetector
public class ZipContainerDetector
A detector that works on a Zip document to figure out exactly what the file is
Constructor Summary | |
---|---|
ZipContainerDetector()
|
Method Summary | |
---|---|
MediaType |
detect(java.io.InputStream input,
Metadata metadata)
Detect on the generic input stream, if possible. |
MediaType |
detect(TikaInputStream input,
Metadata metadata)
Does full, container aware detection for the file of the appropriate container type. |
MediaType |
getDefault()
What is the default type returned by this detector, when it can't figure out anything more specific? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipContainerDetector()
Method Detail |
---|
public MediaType getDefault()
ContainerDetector
getDefault
in interface ContainerDetector
public MediaType detect(java.io.InputStream input, Metadata metadata) throws java.io.IOException
ContainerDetector
TikaInputStream
is needed for proper detection.
detect
in interface ContainerDetector
detect
in interface Detector
input
- document input stream, or null
metadata
- input metadata for the document
application/octet-stream
java.io.IOException
- if the document input stream could not be readpublic MediaType detect(TikaInputStream input, Metadata metadata) throws java.io.IOException
ContainerDetector
detect
in interface ContainerDetector
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |