Class XPSTextExtractor

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.poi.extractor.POITextExtractor, org.apache.poi.ooxml.extractor.POIXMLTextExtractor

    public class XPSTextExtractor
    extends java.lang.Object
    implements org.apache.poi.ooxml.extractor.POIXMLTextExtractor
    Currently, mostly a pass-through class to hold pkg and properties and keep the general framework similar to our other POI-integrated extractors.
    • Constructor Summary

      Constructors 
      Constructor Description
      XPSTextExtractor​(org.apache.poi.openxml4j.opc.OPCPackage pkg)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.poi.ooxml.POIXMLProperties.CoreProperties getCoreProperties()  
      org.apache.poi.ooxml.POIXMLProperties.CustomProperties getCustomProperties()  
      org.apache.poi.ooxml.POIXMLDocument getDocument()  
      org.apache.poi.ooxml.POIXMLProperties.ExtendedProperties getExtendedProperties()  
      java.io.Closeable getFilesystem()  
      org.apache.poi.openxml4j.opc.OPCPackage getPackage()  
      java.lang.String getText()  
      boolean isCloseFilesystem()  
      void setCloseFilesystem​(boolean b)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.poi.ooxml.extractor.POIXMLTextExtractor

        checkMaxTextSize, close, getMetadataTextExtractor
    • Constructor Detail

      • XPSTextExtractor

        public XPSTextExtractor​(org.apache.poi.openxml4j.opc.OPCPackage pkg)
                         throws org.apache.poi.openxml4j.exceptions.OpenXML4JException,
                                org.apache.xmlbeans.XmlException,
                                java.io.IOException
        Throws:
        org.apache.poi.openxml4j.exceptions.OpenXML4JException
        org.apache.xmlbeans.XmlException
        java.io.IOException
    • Method Detail

      • getPackage

        public org.apache.poi.openxml4j.opc.OPCPackage getPackage()
        Specified by:
        getPackage in interface org.apache.poi.ooxml.extractor.POIXMLTextExtractor
      • getText

        public java.lang.String getText()
        Specified by:
        getText in interface org.apache.poi.extractor.POITextExtractor
      • setCloseFilesystem

        public void setCloseFilesystem​(boolean b)
        Specified by:
        setCloseFilesystem in interface org.apache.poi.extractor.POITextExtractor
      • isCloseFilesystem

        public boolean isCloseFilesystem()
        Specified by:
        isCloseFilesystem in interface org.apache.poi.extractor.POITextExtractor
      • getFilesystem

        public java.io.Closeable getFilesystem()
        Specified by:
        getFilesystem in interface org.apache.poi.extractor.POITextExtractor
      • getCoreProperties

        public org.apache.poi.ooxml.POIXMLProperties.CoreProperties getCoreProperties()
        Specified by:
        getCoreProperties in interface org.apache.poi.ooxml.extractor.POIXMLTextExtractor
      • getExtendedProperties

        public org.apache.poi.ooxml.POIXMLProperties.ExtendedProperties getExtendedProperties()
        Specified by:
        getExtendedProperties in interface org.apache.poi.ooxml.extractor.POIXMLTextExtractor
      • getCustomProperties

        public org.apache.poi.ooxml.POIXMLProperties.CustomProperties getCustomProperties()
        Specified by:
        getCustomProperties in interface org.apache.poi.ooxml.extractor.POIXMLTextExtractor
      • getDocument

        public org.apache.poi.ooxml.POIXMLDocument getDocument()
        Specified by:
        getDocument in interface org.apache.poi.extractor.POITextExtractor
        Specified by:
        getDocument in interface org.apache.poi.ooxml.extractor.POIXMLTextExtractor