|
||||||||||
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
public abstract class HWPFDocumentCore
This class holds much of the core of a Word document, but
without some of the table structure information.
You generally want to work with one of
HWPFDocument
or HWPFOldDocument
Constructor Summary | |
---|---|
HWPFDocumentCore(org.apache.poi.poifs.filesystem.DirectoryNode directory)
This constructor loads a Word document from a specific point in a POIFSFileSystem, probably not the default. |
|
HWPFDocumentCore(java.io.InputStream istream)
This constructor loads a Word document from an InputStream. |
|
HWPFDocumentCore(org.apache.poi.poifs.filesystem.POIFSFileSystem pfilesystem)
This constructor loads a Word document from a POIFSFileSystem |
Method Summary | |
---|---|
CHPBinTable |
getCharacterTable()
|
java.lang.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 java.lang.StringBuffer |
getText()
Internal method to access document text |
abstract TextPieceTable |
getTextTable()
|
static org.apache.poi.poifs.filesystem.POIFSFileSystem |
verifyAndBuildPOIFS(java.io.InputStream istream)
Takens an InputStream, verifies that it's not RTF, builds a POIFSFileSystem from it, and returns that. |
Methods inherited from class org.apache.poi.POIDocument |
---|
createInformationProperties, getDocumentSummaryInformation, getSummaryInformation, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWPFDocumentCore(java.io.InputStream istream) throws java.io.IOException
istream
- The InputStream that contains the Word document.
java.io.IOException
- If there is an unexpected IOException from the passed
in InputStream.public HWPFDocumentCore(org.apache.poi.poifs.filesystem.POIFSFileSystem pfilesystem) throws java.io.IOException
pfilesystem
- The POIFSFileSystem that contains the Word document.
java.io.IOException
- If there is an unexpected IOException from the passed
in POIFSFileSystem.public HWPFDocumentCore(org.apache.poi.poifs.filesystem.DirectoryNode directory) throws java.io.IOException
directory
- The DirectoryNode that contains the Word document.
java.io.IOException
- If there is an unexpected IOException from the passed
in POIFSFileSystem.Method Detail |
---|
public static org.apache.poi.poifs.filesystem.POIFSFileSystem verifyAndBuildPOIFS(java.io.InputStream istream) throws java.io.IOException
java.io.IOException
public abstract Range getRange()
public abstract Range getOverallRange()
public java.lang.String getDocumentText()
public abstract java.lang.StringBuffer 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |