org.apache.poi.extractor
public class ExtractorFactory extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CORE_DOCUMENT_REL |
Constructor and Description |
---|
ExtractorFactory() |
Modifier and Type | Method and Description |
---|---|
static POIOLE2TextExtractor |
createExtractor(DirectoryNode poifsDir,
POIFSFileSystem fs) |
static POITextExtractor |
createExtractor(java.io.File f) |
static POITextExtractor |
createExtractor(java.io.InputStream inp) |
static POIXMLTextExtractor |
createExtractor(OPCPackage pkg) |
static POIOLE2TextExtractor |
createExtractor(POIFSFileSystem fs) |
static POITextExtractor[] |
getEmbededDocsTextExtractors(POIOLE2TextExtractor ext)
Returns an array of text extractors, one for each of
the embeded documents in the file (if there are any).
|
static POITextExtractor[] |
getEmbededDocsTextExtractors(POIXMLTextExtractor ext)
Returns an array of text extractors, one for each of
the embeded documents in the file (if there are any).
|
public static final java.lang.String CORE_DOCUMENT_REL
public static POITextExtractor createExtractor(java.io.File f) throws java.io.IOException, InvalidFormatException, OpenXML4JException, XmlException
java.io.IOException
InvalidFormatException
OpenXML4JException
XmlException
public static POITextExtractor createExtractor(java.io.InputStream inp) throws java.io.IOException, InvalidFormatException, OpenXML4JException, XmlException
java.io.IOException
InvalidFormatException
OpenXML4JException
XmlException
public static POIXMLTextExtractor createExtractor(OPCPackage pkg) throws java.io.IOException, OpenXML4JException, XmlException
java.io.IOException
OpenXML4JException
XmlException
public static POIOLE2TextExtractor createExtractor(POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public static POIOLE2TextExtractor createExtractor(DirectoryNode poifsDir, POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public static POITextExtractor[] getEmbededDocsTextExtractors(POIOLE2TextExtractor ext) throws java.io.IOException
POITextExtractor
for each embeded file.java.io.IOException
public static POITextExtractor[] getEmbededDocsTextExtractors(POIXMLTextExtractor ext)
POITextExtractor
for each embeded file.Copyright 2014 The Apache Software Foundation or its licensors, as applicable.