|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.detect.POIFSContainerDetector
public class POIFSContainerDetector
A detector that works on a POIFS OLE2 document to figure out exactly what the file is. This should work for all OLE2 documents, whether they are ones supported by POI or not.
Constructor Summary | |
---|---|
POIFSContainerDetector()
|
Method Summary | |
---|---|
MediaType |
detect(java.io.InputStream input,
Metadata metadata)
Detect on the generic input stream, if possible. |
MediaType |
detect(TikaInputStream stream,
Metadata metadata)
Does full, container aware detection for the file of the appropriate container type. |
protected MediaType |
detectCorel(org.apache.poi.poifs.filesystem.DirectoryNode directory)
|
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 POIFSContainerDetector()
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 stream, Metadata metadata) throws java.io.IOException
ContainerDetector
detect
in interface ContainerDetector
java.io.IOException
protected MediaType detectCorel(org.apache.poi.poifs.filesystem.DirectoryNode directory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |