Class XWPFEventBasedWordExtractor

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class XWPFEventBasedWordExtractor
    extends org.apache.poi.ooxml.extractor.POIXMLTextExtractor
    Experimental class that is based on POI's XSSFEventBasedExcelExtractor
    • Constructor Detail

      • XWPFEventBasedWordExtractor

        public XWPFEventBasedWordExtractor​(String path)
                                    throws org.apache.xmlbeans.XmlException,
                                           org.apache.poi.openxml4j.exceptions.OpenXML4JException,
                                           IOException
        Throws:
        org.apache.xmlbeans.XmlException
        org.apache.poi.openxml4j.exceptions.OpenXML4JException
        IOException
      • XWPFEventBasedWordExtractor

        public XWPFEventBasedWordExtractor​(org.apache.poi.openxml4j.opc.OPCPackage container)
                                    throws org.apache.xmlbeans.XmlException,
                                           org.apache.poi.openxml4j.exceptions.OpenXML4JException,
                                           IOException
        Throws:
        org.apache.xmlbeans.XmlException
        org.apache.poi.openxml4j.exceptions.OpenXML4JException
        IOException
    • Method Detail

      • getPackage

        public org.apache.poi.openxml4j.opc.OPCPackage getPackage()
        Overrides:
        getPackage in class org.apache.poi.ooxml.extractor.POIXMLTextExtractor
      • getCoreProperties

        public org.apache.poi.ooxml.POIXMLProperties.CoreProperties getCoreProperties()
        Overrides:
        getCoreProperties in class org.apache.poi.ooxml.extractor.POIXMLTextExtractor
      • getExtendedProperties

        public org.apache.poi.ooxml.POIXMLProperties.ExtendedProperties getExtendedProperties()
        Overrides:
        getExtendedProperties in class org.apache.poi.ooxml.extractor.POIXMLTextExtractor
      • getCustomProperties

        public org.apache.poi.ooxml.POIXMLProperties.CustomProperties getCustomProperties()
        Overrides:
        getCustomProperties in class org.apache.poi.ooxml.extractor.POIXMLTextExtractor
      • getText

        public String getText()
        Specified by:
        getText in class org.apache.poi.extractor.POITextExtractor