Example usage for org.apache.poi.hwpf HWPFOldDocument HWPFOldDocument

List of usage examples for org.apache.poi.hwpf HWPFOldDocument HWPFOldDocument

Introduction

In this page you can find the example usage for org.apache.poi.hwpf HWPFOldDocument HWPFOldDocument.

Prototype

public HWPFOldDocument(DirectoryNode directory) throws IOException 

Source Link

Usage

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

License:Apache License

protected void parseWord6(DirectoryNode root, XHTMLContentHandler xhtml)
        throws IOException, SAXException, TikaException {
    HWPFOldDocument doc = new HWPFOldDocument(root);
    Word6Extractor extractor = new Word6Extractor(doc);

    for (String p : extractor.getParagraphText()) {
        xhtml.element("p", p);
    }/*from   ww w  . j  ava 2  s.c  om*/
}