| |
|
| java.lang.Object org.apache.poi.POIDocument org.apache.poi.hwpf.HWPFDocument
HWPFDocument | public class HWPFDocument extends POIDocument (Code) | | This class acts as the bucket that we throw all of the Word data structures
into.
author: Ryan Ackley |
_cft | protected ComplexFileTable _cft(Code) | | Contains text of the document wrapped in a obfuscated Word data
structure
|
_dataStream | protected byte[] _dataStream(Code) | | data stream buffer
|
HWPFDocument | protected HWPFDocument()(Code) | | |
HWPFDocument | public HWPFDocument(InputStream istream) throws IOException(Code) | | This constructor loads a Word document from an InputStream.
Parameters: istream - The InputStream that contains the Word document. throws: IOException - If there is an unexpected IOException from the passedin InputStream. |
HWPFDocument | public HWPFDocument(POIFSFileSystem pfilesystem) throws IOException(Code) | | This constructor loads a Word document from a POIFSFileSystem
Parameters: pfilesystem - The POIFSFileSystem that contains the Word document. throws: IOException - If there is an unexpected IOException from the passedin POIFSFileSystem. |
characterLength | public int characterLength()(Code) | | Returns the character length of a document.
the character length of a document |
delete | public void delete(int start, int length)(Code) | | |
getDataStream | public byte[] getDataStream()(Code) | | |
getPicturesTable | public PicturesTable getPicturesTable()(Code) | | PicturesTable object, that is able to extract images from this document |
getSavedByTable | public SavedByTable getSavedByTable()(Code) | | Gets a reference to the saved -by table, which holds the save history for the document.
the saved-by table. |
main | public static void main(String[] args)(Code) | | Takes two arguments, 1) name of the Word file to read in 2) location to
write it out at.
Parameters: args - |
verifyAndBuildPOIFS | public static POIFSFileSystem verifyAndBuildPOIFS(InputStream istream) throws IOException(Code) | | Takens an InputStream, verifies that it's not RTF, builds a
POIFSFileSystem from it, and returns that.
|
write | public void write(OutputStream out) throws IOException(Code) | | Writes out the word file that is represented by an instance of this class.
Parameters: out - The OutputStream to write to. throws: IOException - If there is an unexpected IOException from the passedin OutputStream. |
|
|
|