public class HWPFOldDocument extends 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 and Description |
|---|
HWPFOldDocument(DirectoryNode directory) |
HWPFOldDocument(POIFSFileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
FontTable |
getFontTable()
Use
getOldFontTable() instead!!!
This always throws an UnsupportedOperationException. |
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.
|
static int |
getMaxRecordLength() |
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.
|
StringBuilder |
getText()
Internal method to access document text
|
TextPieceTable |
getTextTable() |
static void |
setMaxRecordLength(int length) |
void |
write() |
void |
write(File out) |
void |
write(OutputStream out) |
getCharacterTable, getDocumentEntryBytes, getDocumentText, getEncryptionInfo, getFileInformationBlock, getListTables, getMainStream, getObjectsPool, getParagraphTable, getSectionTable, getStyleSheet, updateEncryptionInfo, verifyAndBuildPOIFSclearDirectory, close, createInformationProperties, getDirectory, getDocumentSummaryInformation, getEncryptedPropertyStreamName, getPropertySet, getPropertySet, getSummaryInformation, initDirectory, readProperties, readProperties, replaceDirectory, validateInPlaceWritePossible, writeProperties, writeProperties, writePropertiespublic HWPFOldDocument(POIFSFileSystem fs) throws IOException
IOExceptionpublic HWPFOldDocument(DirectoryNode directory) throws IOException
IOExceptionpublic static void setMaxRecordLength(int length)
length - the max record length allowed for HWPFOldDocumentpublic static int getMaxRecordLength()
public Range getOverallRange()
HWPFDocumentCoregetOverallRange in class HWPFDocumentCore@NotImplemented public FontTable getFontTable()
getOldFontTable() instead!!!
This always throws an UnsupportedOperationException.getFontTable in class HWPFDocumentCoreUnsupportedOperationException - Always.public OldFontTable getOldFontTable()
public Range getRange()
HWPFDocumentCoregetRange in class HWPFDocumentCorepublic TextPieceTable getTextTable()
getTextTable in class HWPFDocumentCorepublic StringBuilder getText()
HWPFDocumentCoregetText in class HWPFDocumentCorepublic void write()
throws IOException
write in class POIDocumentIOExceptionpublic void write(File out) throws IOException
write in class POIDocumentIOExceptionpublic void write(OutputStream out) throws IOException
write in class POIDocumentIOExceptionpublic Charset getGuessedCharset()