This class embodies the Property Table for the filesystem; this is
basically the dsirectory for all of the documents in the
filesystem.
| Method from org.apache.cocoon.poi.poifs.property.PropertyTable Detail: |
public void addProperty(Property property) {
_properties.add(property);
}
Add a property to the list of properties we manage |
public int countBlocks() {
return (_blocks == null) ? 0
: _blocks.length;
}
Return the number of BigBlock's this instance uses |
public RootProperty getRoot() {
// it's always the first element in the List
return ( RootProperty ) _properties.get(0);
}
|
public int getStartBlock() {
return _start_block;
}
Get the start block for the property table |
public void preWrite() {
Property[] properties =
( Property [] ) _properties.toArray(new Property[ 0 ]);
// give each property its index
for (int k = 0; k < properties.length; k++)
{
properties[ k ].setIndex(k);
}
// allocate the blocks for the property table
_blocks = PropertyBlock.createPropertyBlockArray(_properties);
// prepare each property for writing
for (int k = 0; k < properties.length; k++)
{
properties[ k ].preWrite();
}
}
|
public void removeProperty(Property property) {
_properties.remove(property);
}
Remove a property from the list of properties we manage |
public void setStartBlock(int index) {
_start_block = index;
}
Set the start block for this instance |
public void writeBlocks(OutputStream stream) throws IOException {
if (_blocks != null)
{
for (int j = 0; j < _blocks.length; j++)
{
_blocks[ j ].writeBlocks(stream);
}
}
}
Write the storage to an OutputStream |