| java.lang.Object org.apache.poi.hdf.extractor.WordDocument
WordDocument | public class WordDocument (Code) | | 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
author: Ryan Ackley |
_ccpFtn | int _ccpFtn(Code) | | length of footnotes text
|
_ccpText | int _ccpText(Code) | | length of main document text stream
|
_characterTable | BTreeSet _characterTable(Code) | | document's character runs
|
_currentList | int _currentList(Code) | | |
_docProps | DOP _docProps(Code) | | contains global Document properties for this document
|
_fcMin | int _fcMin(Code) | | starting position of text in main document stream
|
_header | byte[] _header(Code) | | byte buffer containing the main Document stream
|
_listTables | ListTables _listTables(Code) | | contains All list information for this document
|
_plcfHdd | byte[] _plcfHdd(Code) | | document's header and footer information
|
_sectionCounter | int _sectionCounter(Code) | | |
_styleSheet | StyleSheet _styleSheet(Code) | | contains all style information for this document see Word 97 Doc spec
|
_tableSize | int _tableSize(Code) | | |
WordDocument | public WordDocument(String fileName) throws IOException(Code) | | Constructs a Word document from fileName. Parses the document and places
all the important stuff into data structures.
Parameters: fileName - The name of the file to read. throws: IOException - if there is a problem while parsing the document. |
closeDoc | public void closeDoc()(Code) | | |
main | public static void main(String args)(Code) | | right now this function takes one parameter: a Word file, and outputs an
XSL-FO document at c:\test.xml (this is hardcoded)
|
openDoc | public void openDoc()(Code) | | |
writeAllText | public void writeAllText(Writer out) throws IOException(Code) | | Spits out the document text
Parameters: out - The Writer to write the text to. throws: IOException - if there is a problem while reading from the file orwriting out the text. |
|
|