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

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

Introduction

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

Prototype

@Override
    public String getText() 

Source Link

Usage

From source file:mj.ocraptor.extraction.tika.parser.microsoft.ooxml.XWPFWordExtractorDecorator.java

License:Apache License

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