public abstract class HWPFDocumentCore extends POIDocument
HWPFDocument
or HWPFOldDocument
Modifier and Type | Field and Description |
---|---|
protected CHPBinTable |
_cbt
Contains formatting properties for text
|
protected FileInformationBlock |
_fib
The FIB
|
protected FontTable |
_ft
Holds fonts for this document.
|
protected ListTables |
_lt
Hold list tables
|
protected byte[] |
_mainStream
main document stream buffer
|
protected ObjectPoolImpl |
_objectPool
Holds OLE2 objects
|
protected PAPBinTable |
_pbt
Contains formatting properties for paragraphs
|
protected StyleSheet |
_ss
Holds styles for this document.
|
protected SectionTable |
_st
Contains formatting properties for sections.
|
protected static String |
STREAM_OBJECT_POOL |
protected static String |
STREAM_WORD_DOCUMENT |
directory
Modifier | Constructor and Description |
---|---|
protected |
HWPFDocumentCore() |
|
HWPFDocumentCore(DirectoryNode directory)
This constructor loads a Word document from a specific point
in a POIFSFileSystem, probably not the default.
|
|
HWPFDocumentCore(InputStream istream)
This constructor loads a Word document from an InputStream.
|
|
HWPFDocumentCore(POIFSFileSystem pfilesystem)
This constructor loads a Word document from a POIFSFileSystem
|
Modifier and Type | Method and Description |
---|---|
CHPBinTable |
getCharacterTable() |
String |
getDocumentText()
Returns document text, i.e.
|
FileInformationBlock |
getFileInformationBlock() |
FontTable |
getFontTable() |
ListTables |
getListTables() |
ObjectsPool |
getObjectsPool() |
abstract Range |
getOverallRange()
Returns the range that covers all text in the file, including main text,
footnotes, headers and comments
|
PAPBinTable |
getParagraphTable() |
abstract Range |
getRange()
Returns the range which covers the whole of the document, but excludes
any headers and footers.
|
SectionTable |
getSectionTable() |
StyleSheet |
getStyleSheet() |
abstract StringBuilder |
getText()
Internal method to access document text
|
abstract TextPieceTable |
getTextTable() |
static POIFSFileSystem |
verifyAndBuildPOIFS(InputStream istream)
Takens an InputStream, verifies that it's not RTF, builds a
POIFSFileSystem from it, and returns that.
|
copyNodeRecursively, copyNodes, copyNodes, createInformationProperties, getDocumentSummaryInformation, getPropertySet, getSummaryInformation, readProperties, write, writeProperties, writeProperties, writePropertySet
protected static final String STREAM_OBJECT_POOL
protected static final String STREAM_WORD_DOCUMENT
protected ObjectPoolImpl _objectPool
protected FileInformationBlock _fib
protected StyleSheet _ss
protected CHPBinTable _cbt
protected PAPBinTable _pbt
protected SectionTable _st
protected FontTable _ft
protected ListTables _lt
protected byte[] _mainStream
protected HWPFDocumentCore()
public HWPFDocumentCore(InputStream istream) throws IOException
istream
- The InputStream that contains the Word document.IOException
- If there is an unexpected IOException from the passed
in InputStream.public HWPFDocumentCore(POIFSFileSystem pfilesystem) throws IOException
pfilesystem
- The POIFSFileSystem that contains the Word document.IOException
- If there is an unexpected IOException from the passed
in POIFSFileSystem.public HWPFDocumentCore(DirectoryNode directory) throws IOException
directory
- The DirectoryNode that contains the Word document.IOException
- If there is an unexpected IOException from the passed
in POIFSFileSystem.public static POIFSFileSystem verifyAndBuildPOIFS(InputStream istream) throws IOException
IOException
public abstract Range getRange()
public abstract Range getOverallRange()
public String getDocumentText()
@Internal public abstract StringBuilder getText()
public CHPBinTable getCharacterTable()
public PAPBinTable getParagraphTable()
public SectionTable getSectionTable()
public StyleSheet getStyleSheet()
public ListTables getListTables()
public FontTable getFontTable()
public FileInformationBlock getFileInformationBlock()
public ObjectsPool getObjectsPool()
public abstract TextPieceTable getTextTable()
Copyright © 2020. All rights reserved.