Class POIXMLPropertiesTextExtractor

  • All Implemented Interfaces:, java.lang.AutoCloseable

    public class POIXMLPropertiesTextExtractor
    extends POIXMLTextExtractor
    A POITextExtractor for returning the textual content of the OOXML file properties, eg author and title.
    • Constructor Detail

      • POIXMLPropertiesTextExtractor

        public POIXMLPropertiesTextExtractor​(POIXMLDocument doc)
        Creates a new POIXMLPropertiesTextExtractor for the given open document.
        doc - the given open document
      • POIXMLPropertiesTextExtractor

        public POIXMLPropertiesTextExtractor​(POIXMLTextExtractor otherExtractor)
        Creates a new POIXMLPropertiesTextExtractor, for the same file that another TextExtractor is already working on.
        otherExtractor - the extractor referencing the given file
    • Method Detail

      • getCorePropertiesText

        public java.lang.String getCorePropertiesText()
        Returns the core document properties, eg author
        the core document properties
      • getExtendedPropertiesText

        public java.lang.String getExtendedPropertiesText()
        Returns the extended document properties, eg application
        the extended document properties
      • getCustomPropertiesText

        public java.lang.String getCustomPropertiesText()
        Returns the custom document properties, if there are any
        the custom document properties
      • getText

        public java.lang.String getText()
        Description copied from class: POITextExtractor
        Retrieves all the text from the document. How cells, paragraphs etc are separated in the text is implementation specific - see the javadocs for a specific project for details.
        Specified by:
        getText in class POITextExtractor
        All the text from the document