@Deprecated public final class WordDocument extends Object
Constructor and Description |
---|
WordDocument(InputStream inputStream)
Deprecated.
|
WordDocument(String fileName)
Deprecated.
Constructs a Word document from fileName.
|
Modifier and Type | Method and Description |
---|---|
void |
closeDoc()
Deprecated.
|
static void |
main(String[] args)
Deprecated.
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()
Deprecated.
|
void |
writeAllText(Writer out)
Deprecated.
Spits out the document text
|
void |
writeSection(int start,
int end,
SEP sep,
BTreeSet text,
BTreeSet paragraphTable,
BTreeSet characterTable,
StyleSheet stylesheet)
Deprecated.
|
public WordDocument(String fileName) throws IOException
fileName
- The name of the file to read.IOException
- if there is a problem while parsing the document.public WordDocument(InputStream inputStream) throws IOException
IOException
public static void main(String[] args)
public void writeAllText(Writer out) throws IOException
out
- The Writer to write the text to.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()
Copyright © 2020. All rights reserved.