org.apache.poi.extractor
Class OLE2ScratchpadExtractorFactory
java.lang.Object
org.apache.poi.extractor.OLE2ScratchpadExtractorFactory
public class OLE2ScratchpadExtractorFactory
- extends java.lang.Object
Scratchpad-specific logic for OLE2ExtractorFactory
and
ExtractorFactory
, which permit the other two to run with
no Scratchpad jar (though without functionality!)
Note - should not be used standalone, always use via the other
two classes
Method Summary |
static POITextExtractor |
createExtractor(DirectoryNode poifsDir)
Look for certain entries in the stream, to figure it
out what format is desired
Note - doesn't check for core-supported formats!
Note - doesn't check for OOXML-supported formats |
static void |
identifyEmbeddedResources(POIOLE2TextExtractor ext,
java.util.List<Entry> dirs,
java.util.List<java.io.InputStream> nonPOIFS)
Returns an array of text extractors, one for each of
the embedded documents in the file (if there are any). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OLE2ScratchpadExtractorFactory
public OLE2ScratchpadExtractorFactory()
createExtractor
public static POITextExtractor createExtractor(DirectoryNode poifsDir)
throws java.io.IOException
- Look for certain entries in the stream, to figure it
out what format is desired
Note - doesn't check for core-supported formats!
Note - doesn't check for OOXML-supported formats
- Throws:
java.io.IOException
identifyEmbeddedResources
public static void identifyEmbeddedResources(POIOLE2TextExtractor ext,
java.util.List<Entry> dirs,
java.util.List<java.io.InputStream> nonPOIFS)
throws java.io.IOException
- Returns an array of text extractors, one for each of
the embedded documents in the file (if there are any).
If there are no embedded documents, you'll get back an
empty array. Otherwise, you'll get one open
POITextExtractor
for each embedded file.
- Throws:
java.io.IOException
Copyright 2017 The Apache Software Foundation or
its licensors, as applicable.