FileDocCategorySizeDatePackage
BlockList.javaAPI DocApache Poi 3.0.12501Mon Jan 01 12:39:36 GMT 2007org.apache.poi.poifs.storage

BlockList

public interface BlockList
Interface for lists of blocks that are mapped by block allocation tables
author
Marc Johnson (mjohnson at apache dot org

Fields Summary
Constructors Summary
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.

param
startBlock the index of the first block in the stream
return
the stream as an array of correctly ordered blocks
exception
IOException if blocks are missing

public org.apache.poi.poifs.storage.ListManagedBlockremove(int index)
remove and return the specified block from the list

param
index the index of the specified block
return
the specified block
exception
IOException if the index is out of range or has already been removed

public voidsetBAT(org.apache.poi.poifs.storage.BlockAllocationTableReader bat)
set the associated BlockAllocationTable

param
bat the associated BlockAllocationTable
exception
IOException

public voidzap(int index)
remove the specified block from the list

param
index the index of the specified block; if the index is out of range, that's ok