public class XWPFWordExtractor extends POIXMLTextExtractor
| Modifier and Type | Field and Description |
|---|---|
static XWPFRelation[] |
SUPPORTED_TYPES |
| Constructor and Description |
|---|
XWPFWordExtractor(OPCPackage container) |
XWPFWordExtractor(XWPFDocument document) |
| Modifier and Type | Method and Description |
|---|---|
String |
getText()
Retrieves all the text from the document.
|
static void |
main(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, getMetadataTextExtractor, getPackagepublic static final XWPFRelation[] SUPPORTED_TYPES
public XWPFWordExtractor(OPCPackage container) throws org.apache.xmlbeans.XmlException, OpenXML4JException, IOException
org.apache.xmlbeans.XmlExceptionOpenXML4JExceptionIOExceptionpublic XWPFWordExtractor(XWPFDocument document)
public void setFetchHyperlinks(boolean fetch)
public String getText()
POITextExtractorgetText in class POITextExtractorCopyright © 2020. All rights reserved.