Class POITextExtractor

    • Constructor Detail

      • POITextExtractor

        public POITextExtractor()
    • Method Detail

      • getText

        public abstract String getText()
        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.
        All the text from the document
      • getMetadataTextExtractor

        public abstract POITextExtractor getMetadataTextExtractor()
        Returns another text extractor, which is able to output the textual content of the document metadata / properties, such as author and title.
        the metadata and text extractor
      • setFilesystem

        public void setFilesystem​(Closeable fs)
        Used to ensure file handle cleanup.
        fs - filesystem to close
      • close

        public void close()
                   throws IOException
        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 AutoCloseable
        Specified by:
        close in interface Closeable
      • getDocument

        public abstract Object getDocument()
        the processed document