org.apache.poi
Class POIXMLTextExtractor

java.lang.Object
  extended by org.apache.poi.POITextExtractor
      extended by org.apache.poi.POIXMLTextExtractor
Direct Known Subclasses:
POIXMLPropertiesTextExtractor, XSLFPowerPointExtractor, XSSFExcelExtractor, XWPFWordExtractor

public abstract class POIXMLTextExtractor
extends POITextExtractor


Field Summary
protected  POIXMLDocument document
          The POIXMLDocument that's open
 
Constructor Summary
POIXMLTextExtractor(POIXMLDocument document)
          Creates a new text extractor for the given document
 
Method Summary
 POIXMLProperties.CoreProperties getCoreProperties()
          Returns the core document properties
 POIXMLProperties.CustomProperties getCustomProperties()
          Returns the custom document properties
 POIXMLDocument getDocument()
          Returns opened document
 POIXMLProperties.ExtendedProperties getExtendedProperties()
          Returns the extended document properties
 POITextExtractor getMetadataTextExtractor()
          Returns an OOXML properties text extractor for the document properties metadata, such as title and author.
 
Methods inherited from class org.apache.poi.POITextExtractor
getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected POIXMLDocument document
The POIXMLDocument that's open

Constructor Detail

POIXMLTextExtractor

public POIXMLTextExtractor(POIXMLDocument document)
Creates a new text extractor for the given document

Method Detail

getCoreProperties

public POIXMLProperties.CoreProperties getCoreProperties()
                                                  throws java.io.IOException,
                                                         org.openxml4j.exceptions.OpenXML4JException,
                                                         org.apache.xmlbeans.XmlException
Returns the core document properties

Throws:
java.io.IOException
org.openxml4j.exceptions.OpenXML4JException
org.apache.xmlbeans.XmlException

getExtendedProperties

public POIXMLProperties.ExtendedProperties getExtendedProperties()
                                                          throws java.io.IOException,
                                                                 org.openxml4j.exceptions.OpenXML4JException,
                                                                 org.apache.xmlbeans.XmlException
Returns the extended document properties

Throws:
java.io.IOException
org.openxml4j.exceptions.OpenXML4JException
org.apache.xmlbeans.XmlException

getCustomProperties

public POIXMLProperties.CustomProperties getCustomProperties()
                                                      throws java.io.IOException,
                                                             org.openxml4j.exceptions.OpenXML4JException,
                                                             org.apache.xmlbeans.XmlException
Returns the custom document properties

Throws:
java.io.IOException
org.openxml4j.exceptions.OpenXML4JException
org.apache.xmlbeans.XmlException

getDocument

public POIXMLDocument getDocument()
Returns opened document


getMetadataTextExtractor

public POITextExtractor getMetadataTextExtractor()
Returns an OOXML properties text extractor for the document properties metadata, such as title and author.

Specified by:
getMetadataTextExtractor in class POITextExtractor


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.