public class OLE2ScratchpadExtractorFactory extends Object implements ExtractorProvider
ExtractorFactory 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
| Constructor and Description |
|---|
OLE2ScratchpadExtractorFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(FileMagic fm) |
POITextExtractor |
create(DirectoryNode poifsDir,
String password)
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
|
POITextExtractor |
create(File file,
String password) |
POITextExtractor |
create(InputStream inputStream,
String password) |
void |
identifyEmbeddedResources(POIOLE2TextExtractor ext,
List<Entry> dirs,
List<InputStream> nonPOIFS)
Returns an array of text extractors, one for each of
the embedded documents in the file (if there are any).
|
public boolean accepts(FileMagic fm)
accepts in interface ExtractorProviderpublic POITextExtractor create(File file, String password) throws IOException
create in interface ExtractorProviderIOExceptionpublic POITextExtractor create(InputStream inputStream, String password) throws IOException
create in interface ExtractorProviderIOExceptionpublic POITextExtractor create(DirectoryNode poifsDir, String password) throws IOException
create in interface ExtractorProviderpoifsDir - the directory node to be inspectedIOException - when the format specific extraction fails because of invalid entirespublic void identifyEmbeddedResources(POIOLE2TextExtractor ext, List<Entry> dirs, List<InputStream> nonPOIFS)
POITextExtractor for each embedded file.identifyEmbeddedResources in interface ExtractorProviderext - the extractor holding the directory to start parsingdirs - a list to be filled with directory references holding embeddednonPOIFS - a list to be filled with streams which aren't based on POIFS entries