|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.extractor.ExtractorFactory
public class ExtractorFactory
Figures out the correct POITextExtractor for your supplied document, and returns it.
Field Summary | |
---|---|
static java.lang.String |
CORE_DOCUMENT_REL
|
Constructor Summary | |
---|---|
ExtractorFactory()
|
Method Summary | |
---|---|
static org.apache.poi.POITextExtractor |
createExtractor(org.apache.poi.poifs.filesystem.DirectoryNode poifsDir)
|
static org.apache.poi.POITextExtractor |
createExtractor(org.apache.poi.poifs.filesystem.DirectoryNode poifsDir,
org.apache.poi.poifs.filesystem.POIFSFileSystem fs)
Deprecated. Use createExtractor(DirectoryNode) instead |
static org.apache.poi.POITextExtractor |
createExtractor(java.io.File f)
|
static org.apache.poi.POITextExtractor |
createExtractor(java.io.InputStream inp)
|
static POIXMLTextExtractor |
createExtractor(OPCPackage pkg)
|
static org.apache.poi.POIOLE2TextExtractor |
createExtractor(org.apache.poi.poifs.filesystem.POIFSFileSystem fs)
|
static java.lang.Boolean |
getAllThreadsPreferEventExtractors()
Should all threads prefer event based over usermodel based extractors? (usermodel extractors tend to be more accurate, but use more memory) Default is to use the thread level setting, which defaults to false. |
static org.apache.poi.POITextExtractor[] |
getEmbededDocsTextExtractors(org.apache.poi.POIOLE2TextExtractor ext)
Returns an array of text extractors, one for each of the embeded documents in the file (if there are any). |
static org.apache.poi.POITextExtractor[] |
getEmbededDocsTextExtractors(POIXMLTextExtractor ext)
Returns an array of text extractors, one for each of the embeded documents in the file (if there are any). |
static java.lang.Object |
getThreadPrefersEventExtractors()
Should this thread prefer event based over usermodel based extractors? (usermodel extractors tend to be more accurate, but use more memory) Default is false. |
static void |
setAllThreadsPreferEventExtractors(java.lang.Boolean preferEventExtractors)
Should all threads prefer event based over usermodel based extractors? If set, will take preference over the Thread level setting. |
static void |
setThreadPrefersEventExtractors(boolean preferEventExtractors)
Should this thread prefer event based over usermodel based extractors? Will only be used if the All Threads setting is null. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CORE_DOCUMENT_REL
Constructor Detail |
---|
public ExtractorFactory()
Method Detail |
---|
public static java.lang.Object getThreadPrefersEventExtractors()
public static java.lang.Boolean getAllThreadsPreferEventExtractors()
public static void setThreadPrefersEventExtractors(boolean preferEventExtractors)
public static void setAllThreadsPreferEventExtractors(java.lang.Boolean preferEventExtractors)
public static org.apache.poi.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 org.apache.poi.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 org.apache.poi.POIOLE2TextExtractor createExtractor(org.apache.poi.poifs.filesystem.POIFSFileSystem fs) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
java.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static org.apache.poi.POITextExtractor createExtractor(org.apache.poi.poifs.filesystem.DirectoryNode poifsDir, org.apache.poi.poifs.filesystem.POIFSFileSystem fs) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
createExtractor(DirectoryNode)
instead
java.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static org.apache.poi.POITextExtractor createExtractor(org.apache.poi.poifs.filesystem.DirectoryNode poifsDir) throws java.io.IOException, InvalidFormatException, OpenXML4JException, org.apache.xmlbeans.XmlException
java.io.IOException
InvalidFormatException
OpenXML4JException
org.apache.xmlbeans.XmlException
public static org.apache.poi.POITextExtractor[] getEmbededDocsTextExtractors(org.apache.poi.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 org.apache.poi.POITextExtractor[] getEmbededDocsTextExtractors(POIXMLTextExtractor ext)
POITextExtractor
for each embeded file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |