public final class PropertyTable extends java.lang.Object implements BATManaged
POIFSFileSystem;
this is basically the directory for all of the documents in the
filesystem and looks up entries in the filesystem to their
chain of blocks.| Constructor and Description |
|---|
PropertyTable(HeaderBlock headerBlock) |
PropertyTable(HeaderBlock headerBlock,
POIFSFileSystem filesystem)
reading constructor (used when we've read in a file and we want
to extract the property table from it).
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Property property)
Add a property to the list of properties we manage
|
int |
countBlocks()
Return the number of BigBlock's this instance uses
|
RootProperty |
getRoot()
Get the root property
|
int |
getStartBlock()
Get the start block for the property table
|
void |
preWrite()
Prepare to be written
|
void |
removeProperty(Property property)
Remove a property from the list of properties we manage
|
void |
setStartBlock(int index)
Set the start block for this instance
|
void |
write(POIFSStream stream)
Writes the properties out into the given low-level stream
|
public PropertyTable(HeaderBlock headerBlock)
public PropertyTable(HeaderBlock headerBlock, POIFSFileSystem filesystem) throws java.io.IOException
headerBlock - the header block of the filefilesystem - the filesystem to read fromjava.io.IOException - if anything goes wrong (which should be
a result of the input being NFG)public void addProperty(Property property)
property - the new Property to managepublic void removeProperty(Property property)
property - the Property to be removedpublic RootProperty getRoot()
public int getStartBlock()
public void setStartBlock(int index)
setStartBlock in interface BATManagedindex - index into the array of BigBlock instances making
up the the filesystempublic int countBlocks()
countBlocks in interface BATManagedpublic void preWrite()
public void write(POIFSStream stream) throws java.io.IOException
java.io.IOException