Class PropertyTable
java.lang.Object
org.docx4j.org.apache.poi.poifs.property.PropertyTableBase
org.docx4j.org.apache.poi.poifs.property.PropertyTable
- All Implemented Interfaces:
BATManaged,BlockWritable
This class embodies the Property Table for the
POIFSFileSystem;
this is basically the directory for all of the documents in the
filesystem.- Author:
- Marc Johnson (mjohnson at apache dot org)
-
Field Summary
Fields inherited from class org.docx4j.org.apache.poi.poifs.property.PropertyTableBase
_properties -
Constructor Summary
ConstructorsConstructorDescriptionPropertyTable(HeaderBlock headerBlock) PropertyTable(HeaderBlock headerBlock, RawDataBlockList blockList) reading constructor (used when we've read in a file and we want to extract the property table from it). -
Method Summary
Modifier and TypeMethodDescriptionintReturn the number of BigBlock's this instance usesvoidpreWrite()Prepare to be writtenvoidwriteBlocks(OutputStream stream) Write the storage to an OutputStreamMethods inherited from class org.docx4j.org.apache.poi.poifs.property.PropertyTableBase
addProperty, getRoot, getStartBlock, removeProperty, setStartBlock
-
Constructor Details
-
PropertyTable
-
PropertyTable
reading constructor (used when we've read in a file and we want to extract the property table from it). Populates the properties thoroughly- Parameters:
headerBlock- the header block of the fileblockList- the list of blocks- Throws:
IOException- if anything goes wrong (which should be a result of the input being NFG)
-
-
Method Details
-
preWrite
public void preWrite()Prepare to be written -
countBlocks
public int countBlocks()Return the number of BigBlock's this instance uses- Specified by:
countBlocksin interfaceBATManaged- Returns:
- count of BigBlock instances
-
writeBlocks
Write the storage to an OutputStream- Specified by:
writeBlocksin interfaceBlockWritable- Parameters:
stream- the OutputStream to which the stored data should be written- Throws:
IOException- on problems writing to the specified stream
-