Example usage for org.apache.poi.xwpf.usermodel ISDTContent getText

List of usage examples for org.apache.poi.xwpf.usermodel ISDTContent getText

Introduction

In this page you can find the example usage for org.apache.poi.xwpf.usermodel ISDTContent getText.

Prototype

public String getText();

Source Link

Usage

From source file:org.apache.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.java

License:Apache License

private void extractSDT(XWPFSDT element, XHTMLContentHandler xhtml)
        throws SAXException, XmlException, IOException {
    ISDTContent content = element.getContent();
    String tag = "p";
    xhtml.startElement(tag);//from w w w  .  ja  v  a2 s  .  c  om
    xhtml.characters(content.getText());
    xhtml.endElement(tag);
}