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 POITextExtractor |
createExtractor(DirectoryNode poifsDir) |
static POITextExtractor |
createExtractor(DirectoryNode poifsDir,
POIFSFileSystem fs)
Deprecated.
Use
createExtractor(DirectoryNode) instead |
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 java.lang.Boolean |
getAllThreadsPreferEventExtractors()
Should all threads prefer event based over usermodel based extractors?
|
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).
|
protected static boolean |
getPreferEventExtractor()
Should this thread use event based extractors is available?
|
static boolean |
getThreadPrefersEventExtractors()
Should this thread prefer event based over usermodel based extractors?
|
static void |
setAllThreadsPreferEventExtractors(java.lang.Boolean preferEventExtractors)
Should all threads prefer event based over usermodel based extractors?
|
static void |
setThreadPrefersEventExtractors(boolean preferEventExtractors)
Should this thread prefer event based over usermodel based extractors?
|
public static final java.lang.String CORE_DOCUMENT_REL
public static boolean getThreadPrefersEventExtractors()
public static java.lang.Boolean getAllThreadsPreferEventExtractors()
public static void setThreadPrefersEventExtractors(boolean preferEventExtractors)
public static void setAllThreadsPreferEventExtractors(java.lang.Boolean preferEventExtractors)
protected static boolean getPreferEventExtractor()
public static POITextExtractor createExtractor(java.io.File f) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
java.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static POITextExtractor createExtractor(java.io.InputStream inp) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
java.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static POIXMLTextExtractor createExtractor(OPCPackage pkg) throws java.io.IOException, OpenXML4JException, org.apache.xmlbeans.XmlException
java.io.IOException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static POIOLE2TextExtractor createExtractor(POIFSFileSystem fs) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
java.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
@Deprecated public static POITextExtractor createExtractor(DirectoryNode poifsDir, POIFSFileSystem fs) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
createExtractor(DirectoryNode)
insteadjava.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static POITextExtractor createExtractor(DirectoryNode poifsDir) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
java.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static POITextExtractor[] getEmbededDocsTextExtractors(POIOLE2TextExtractor ext) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
POITextExtractor
for each embeded file.java.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static POITextExtractor[] getEmbededDocsTextExtractors(POIXMLTextExtractor ext)
POITextExtractor
for each embeded file.Copyright © 2005-2010 Potix Corporation. All Rights Reserved.