Methods Summary |
---|
public org.apache.poi.poifs.storage.ListManagedBlock[] | fetchBlocks(int startBlock)get the blocks making up a particular stream in the list. The
blocks are removed from the list.
if (_bat == null)
{
throw new IOException(
"Improperly initialized list: no block allocation table provided");
}
return _bat.fetchBlocks(startBlock, this);
|
public org.apache.poi.poifs.storage.ListManagedBlock | remove(int index)remove and return the specified block from the list
ListManagedBlock result = null;
try
{
result = _blocks[ index ];
if (result == null)
{
throw new IOException("block[ " + index
+ " ] already removed");
}
_blocks[ index ] = null;
}
catch (ArrayIndexOutOfBoundsException ignored)
{
throw new IOException("Cannot remove block[ " + index
+ " ]; out of range");
}
return result;
|
public void | setBAT(org.apache.poi.poifs.storage.BlockAllocationTableReader bat)set the associated BlockAllocationTable
if (_bat != null)
{
throw new IOException(
"Attempt to replace existing BlockAllocationTable");
}
_bat = bat;
|
protected void | setBlocks(org.apache.poi.poifs.storage.ListManagedBlock[] blocks)provide blocks to manage
_blocks = blocks;
|
public void | zap(int index)remove the specified block from the list
if ((index >= 0) && (index < _blocks.length))
{
_blocks[ index ] = null;
}
|