Documentation of 'org.apache.poi.xwpf.extractor.XWPFWordExtractor' Java class
XWPFWordExtractor
org.apache.poi.xwpf.extractor

Class XWPFWordExtractor

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable


    public class XWPFWordExtractor
    extends POIXMLTextExtractor
    Helper class to extract text from an OOXML Word file
    • Field Detail

      • SUPPORTED_TYPES

        public static final XWPFRelation[] SUPPORTED_TYPES
    • Constructor Detail

      • XWPFWordExtractor

        public XWPFWordExtractor(XWPFDocument document)
    • Method Detail

      • setFetchHyperlinks

        public void setFetchHyperlinks(boolean fetch)
        Should we also fetch the hyperlinks, when fetching the text content? Default is to only output the hyperlink label, and not the contents
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • 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
        Returns:
        All the text from the document
      • appendBodyElementText

        public void appendBodyElementText(java.lang.StringBuffer text,
                                          IBodyElement e)
      • appendParagraphText

        public void appendParagraphText(java.lang.StringBuffer text,
                                        XWPFParagraph paragraph)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.