org.apache.poi.xwpf.extractor
public class XWPFWordExtractor extends POIXMLTextExtractor
| Constructor and Description |
|---|
XWPFWordExtractor(OPCPackage container) |
XWPFWordExtractor(XWPFDocument document) |
| Modifier and Type | Method and Description |
|---|---|
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
|
getCoreProperties, getCustomProperties, getDocument, getExtendedProperties, getMetadataTextExtractorpublic XWPFWordExtractor(OPCPackage container) throws XmlException, OpenXML4JException, java.io.IOException
XmlExceptionOpenXML4JExceptionjava.io.IOExceptionpublic XWPFWordExtractor(XWPFDocument document)
public void setFetchHyperlinks(boolean fetch)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getText()
POITextExtractorgetText in class POITextExtractorCopyright 2016 The Apache Software Foundation or its licensors, as applicable.