|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
ContainerDetectorTikaInputStream is needed for proper detection.
detect in interface ContainerDetectordetect in interface Detectorjava.io.IOException
public MediaType detect(TikaInputStream stream,
Metadata metadata)
throws java.io.IOException
ContainerDetector
detect in interface ContainerDetectorjava.io.IOExceptionprotected 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 | |||||||||