|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hdf.extractor.WordDocument
This class contains the main functionality for the Word file "reader". Much of the code in this class is based on the Word 97 document file format. Only works for non-complex files
Constructor Summary | |
WordDocument(java.io.InputStream inputStream)
|
|
WordDocument(java.lang.String fileName)
Constructs a Word document from fileName. |
Method Summary | |
void |
closeDoc()
|
static void |
main(java.lang.String[] args)
right now this function takes one parameter: a Word file, and outputs an XSL-FO document at c:\test.xml (this is hardcoded) |
void |
openDoc()
|
void |
writeAllText(java.io.Writer out)
Spits out the document text |
void |
writeSection(int start,
int end,
SEP sep,
BTreeSet text,
BTreeSet paragraphTable,
BTreeSet characterTable,
StyleSheet stylesheet)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WordDocument(java.lang.String fileName) throws java.io.IOException
fileName
- The name of the file to read.
java.io.IOException
- if there is a problem while parsing the document.public WordDocument(java.io.InputStream inputStream) throws java.io.IOException
Method Detail |
public static void main(java.lang.String[] args)
public void writeAllText(java.io.Writer out) throws java.io.IOException
out
- The Writer to write the text to.
java.io.IOException
- if there is a problem while reading from the file or
writing out the text.public void openDoc()
public void writeSection(int start, int end, SEP sep, BTreeSet text, BTreeSet paragraphTable, BTreeSet characterTable, StyleSheet stylesheet)
public void closeDoc()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |