Class POIXMLTextExtractor

    • Constructor Detail

      • POIXMLTextExtractor

        public POIXMLTextExtractor​(POIXMLDocument document)
        Creates a new text extractor for the given document
        Parameters:
        document - the document to extract from
    • Method Detail

      • getCoreProperties

        public POIXMLProperties.CoreProperties getCoreProperties()
        Returns the core document properties
        Returns:
        the core document properties
      • getExtendedProperties

        public POIXMLProperties.ExtendedProperties getExtendedProperties()
        Returns the extended document properties
        Returns:
        the extended document properties
      • getCustomProperties

        public POIXMLProperties.CustomProperties getCustomProperties()
        Returns the custom document properties
        Returns:
        the custom document properties
      • getPackage

        public OPCPackage getPackage()
        Returns the opened OPCPackage that contains the document
        Returns:
        the opened OPCPackage
      • close

        public void close()
                   throws java.io.IOException
        Description copied from class: POITextExtractor
        Allows to free resources of the Extractor as soon as it is not needed any more. This may include closing open file handles and freeing memory. The Extractor cannot be used after close has been called.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class POITextExtractor
        Throws:
        java.io.IOException