|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.poi.POIDocument
org.apache.poi.hwpf.HWPFDocumentCore
org.apache.poi.hwpf.HWPFOldDocument
public class HWPFOldDocument
Provides very simple support for old (Word 6 / Word 95) files.
| Field Summary |
|---|
| Fields inherited from class org.apache.poi.hwpf.HWPFDocumentCore |
|---|
_cbt, _fib, _ft, _lt, _mainStream, _objectPool, _pbt, _ss, _st, FIB_BASE_LEN, RC4_REKEYING_INTERVAL, STREAM_OBJECT_POOL, STREAM_TABLE_0, STREAM_TABLE_1, STREAM_WORD_DOCUMENT |
| Constructor Summary | |
|---|---|
HWPFOldDocument(DirectoryNode directory)
|
|
HWPFOldDocument(POIFSFileSystem fs)
|
|
| Method Summary | |
|---|---|
FontTable |
getFontTable()
Use getOldFontTable() instead!!!
This always throws an IllegalArgumentException. |
java.nio.charset.Charset |
getGuessedCharset()
As a rough heuristic (total hack), read through the HPSF, then read through the font table, and take the first non-default, non-ansi, non-symbol font's charset and return that. |
OldFontTable |
getOldFontTable()
|
Range |
getOverallRange()
Returns the range that covers all text in the file, including main text, footnotes, headers and comments |
Range |
getRange()
Returns the range which covers the whole of the document, but excludes any headers and footers. |
java.lang.StringBuilder |
getText()
Internal method to access document text |
TextPieceTable |
getTextTable()
|
void |
write()
|
void |
write(java.io.File out)
|
void |
write(java.io.OutputStream out)
|
| Methods inherited from class org.apache.poi.hwpf.HWPFDocumentCore |
|---|
getCharacterTable, getDocumentEntryBytes, getDocumentText, getEncryptionInfo, getFileInformationBlock, getListTables, getMainStream, getObjectsPool, getParagraphTable, getSectionTable, getStyleSheet, updateEncryptionInfo, verifyAndBuildPOIFS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HWPFOldDocument(POIFSFileSystem fs)
throws java.io.IOException
java.io.IOException
public HWPFOldDocument(DirectoryNode directory)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public Range getOverallRange()
HWPFDocumentCore
getOverallRange in class HWPFDocumentCore@NotImplemented public FontTable getFontTable()
getOldFontTable() instead!!!
This always throws an IllegalArgumentException.
getFontTable in class HWPFDocumentCorejava.lang.UnsupportedOperationExceptionpublic OldFontTable getOldFontTable()
public Range getRange()
HWPFDocumentCore
getRange in class HWPFDocumentCorepublic TextPieceTable getTextTable()
getTextTable in class HWPFDocumentCorepublic java.lang.StringBuilder getText()
HWPFDocumentCore
getText in class HWPFDocumentCore
public void write()
throws java.io.IOException
write in class POIDocumentjava.io.IOException
public void write(java.io.File out)
throws java.io.IOException
write in class POIDocumentjava.io.IOException
public void write(java.io.OutputStream out)
throws java.io.IOException
write in class POIDocumentjava.io.IOExceptionpublic java.nio.charset.Charset getGuessedCharset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||