|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.POIDocument org.apache.poi.hwpf.HWPFDocument
public class HWPFDocument
This class acts as the bucket that we throw all of the Word data structures into.
Field Summary | |
---|---|
protected CHPBinTable |
_cbt
Contains formatting properties for text |
protected ComplexFileTable |
_cft
Contains text of the document wrapped in a obfuscated Word data structure |
protected byte[] |
_dataStream
data stream buffer |
protected EscherRecordHolder |
_dgg
Escher Drawing Group information |
protected DocumentProperties |
_dop
Document wide Properties |
protected FileInformationBlock |
_fib
The FIB |
protected FSPATable |
_fspa
Holds FSBA (shape) information |
protected FontTable |
_ft
Holds fonts for this document. |
protected ListTables |
_lt
Hold list tables |
protected byte[] |
_mainStream
main document stream buffer |
protected PAPBinTable |
_pbt
Contains formatting properties for paragraphs |
protected PicturesTable |
_pictures
Holds pictures table |
protected SavedByTable |
_sbt
Holds the save history for this document. |
protected StyleSheet |
_ss
Holds styles for this document. |
protected SectionTable |
_st
Contains formatting properties for sections. |
protected byte[] |
_tableStream
table stream buffer |
protected TextPieceTable |
_tpt
|
Fields inherited from class org.apache.poi.POIDocument |
---|
directory, dsInf, filesystem, initialized, logger, sInf |
Constructor Summary | |
---|---|
protected |
HWPFDocument()
|
|
HWPFDocument(DirectoryNode directory,
POIFSFileSystem pfilesystem)
This constructor loads a Word document from a specific point in a POIFSFileSystem, probably not the default. |
|
HWPFDocument(java.io.InputStream istream)
This constructor loads a Word document from an InputStream. |
|
HWPFDocument(POIFSFileSystem pfilesystem)
This constructor loads a Word document from a POIFSFileSystem |
Method Summary | |
---|---|
int |
characterLength()
Returns the character length of a document. |
void |
delete(int start,
int length)
|
CHPBinTable |
getCharacterTable()
|
byte[] |
getDataStream()
|
DocumentProperties |
getDocProperties()
|
FileInformationBlock |
getFileInformationBlock()
|
FontTable |
getFontTable()
|
ListTables |
getListTables()
|
PAPBinTable |
getParagraphTable()
|
PicturesTable |
getPicturesTable()
|
Range |
getRange()
|
SavedByTable |
getSavedByTable()
Gets a reference to the saved -by table, which holds the save history for the document. |
SectionTable |
getSectionTable()
|
StyleSheet |
getStyleSheet()
|
TextPieceTable |
getTextTable()
|
static void |
main(java.lang.String[] args)
Takes two arguments, 1) name of the Word file to read in 2) location to write it out at. |
int |
registerList(HWPFList list)
|
static POIFSFileSystem |
verifyAndBuildPOIFS(java.io.InputStream istream)
Takens an InputStream, verifies that it's not RTF, builds a POIFSFileSystem from it, and returns that. |
void |
write(java.io.OutputStream out)
Writes out the word file that is represented by an instance of this class. |
Methods inherited from class org.apache.poi.POIDocument |
---|
copyNodes, getDocumentSummaryInformation, getPropertySet, getSummaryInformation, readProperties, writeProperties, writeProperties, writePropertySet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FileInformationBlock _fib
protected byte[] _mainStream
protected byte[] _tableStream
protected byte[] _dataStream
protected DocumentProperties _dop
protected ComplexFileTable _cft
protected TextPieceTable _tpt
protected CHPBinTable _cbt
protected PAPBinTable _pbt
protected SectionTable _st
protected StyleSheet _ss
protected FontTable _ft
protected ListTables _lt
protected SavedByTable _sbt
protected PicturesTable _pictures
protected FSPATable _fspa
protected EscherRecordHolder _dgg
Constructor Detail |
---|
protected HWPFDocument()
public HWPFDocument(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 HWPFDocument(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 HWPFDocument(DirectoryNode directory, 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.Method Detail |
---|
public static POIFSFileSystem verifyAndBuildPOIFS(java.io.InputStream istream) throws java.io.IOException
java.io.IOException
public StyleSheet getStyleSheet()
public FileInformationBlock getFileInformationBlock()
public DocumentProperties getDocProperties()
public Range getRange()
public int characterLength()
public ListTables getListTables()
public SavedByTable getSavedByTable()
public PicturesTable getPicturesTable()
public void write(java.io.OutputStream out) throws java.io.IOException
write
in class POIDocument
out
- The OutputStream to write to.
java.io.IOException
- If there is an unexpected IOException from the passed
in OutputStream.public CHPBinTable getCharacterTable()
public PAPBinTable getParagraphTable()
public SectionTable getSectionTable()
public TextPieceTable getTextTable()
public byte[] getDataStream()
public int registerList(HWPFList list)
public FontTable getFontTable()
public void delete(int start, int length)
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |