java.io.Closeable
, java.lang.AutoCloseable
public class XWPFWordExtractor extends POIXMLTextExtractor
Modifier and Type | Field | Description |
---|---|---|
static XWPFRelation[] |
SUPPORTED_TYPES |
Constructor | Description |
---|---|
XWPFWordExtractor(OPCPackage container) |
|
XWPFWordExtractor(XWPFDocument document) |
Modifier and Type | Method | Description |
---|---|---|
void |
appendBodyElementText(java.lang.StringBuffer text,
IBodyElement e) |
|
void |
appendParagraphText(java.lang.StringBuffer text,
XWPFParagraph paragraph) |
|
java.lang.String |
getText() |
Retrieves all the text from the document.
|
static void |
main(java.lang.String[] args) |
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getCoreProperties, getCustomProperties, getDocument, getExtendedProperties, getMetadataTextExtractor, getPackage
public static final XWPFRelation[] SUPPORTED_TYPES
public XWPFWordExtractor(OPCPackage container) throws org.apache.xmlbeans.XmlException, OpenXML4JException, java.io.IOException
org.apache.xmlbeans.XmlException
OpenXML4JException
java.io.IOException
public XWPFWordExtractor(XWPFDocument document)
public void setFetchHyperlinks(boolean fetch)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public java.lang.String getText()
POITextExtractor
getText
in class POITextExtractor
public void appendBodyElementText(java.lang.StringBuffer text, IBodyElement e)
public void appendParagraphText(java.lang.StringBuffer text, XWPFParagraph paragraph)
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.