|
||||||||||
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.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 DocumentProperties |
_dop
Document wide Properties |
protected FileInformationBlock |
_fib
The FIB |
protected FontTable |
_ft
Holds fonts for this document. |
protected ListTables |
_lt
Hold list tables |
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 TextPieceTable |
_tpt
|
Fields inherited from class org.apache.poi.POIDocument |
---|
dsInf, filesystem, sInf |
Constructor Summary | |
---|---|
protected |
HWPFDocument()
|
|
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()
|
Range |
getRange()
|
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)
|
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 |
---|
getDocumentSummaryInformation, getPropertySet, getSummaryInformation, readProperties, 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[] _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
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.Method Detail |
---|
public StyleSheet getStyleSheet()
public FileInformationBlock getFileInformationBlock()
public DocumentProperties getDocProperties()
public Range getRange()
public int characterLength()
public ListTables getListTables()
public void write(java.io.OutputStream out) throws java.io.IOException
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 |