class BlockListImpl extends Object implements BlockList
Modifier and Type | Field and Description |
---|---|
private BlockAllocationTableReader |
_bat |
protected ListManagedBlock[] |
_blocks |
Modifier | Constructor and Description |
---|---|
protected |
BlockListImpl()
Constructor BlockListImpl
|
Modifier and Type | Method and Description |
---|---|
ListManagedBlock[] |
fetchBlocks(int startBlock)
get the blocks making up a particular stream in the list.
|
ListManagedBlock |
remove(int index)
remove and return the specified block from the list
|
void |
setBAT(BlockAllocationTableReader bat)
set the associated BlockAllocationTable
|
protected void |
setBlocks(ListManagedBlock[] blocks)
provide blocks to manage
|
void |
zap(int index)
remove the specified block from the list
|
protected ListManagedBlock[] _blocks
private BlockAllocationTableReader _bat
protected void setBlocks(ListManagedBlock[] blocks)
blocks
- blocks to be managedpublic void zap(int index)
public ListManagedBlock remove(int index) throws IOException
remove
in interface BlockList
index
- the index of the specified blockIOException
- if the index is out of range or has
already been removedpublic ListManagedBlock[] fetchBlocks(int startBlock) throws IOException
fetchBlocks
in interface BlockList
startBlock
- the index of the first block in the streamIOException
- if blocks are missingpublic void setBAT(BlockAllocationTableReader bat) throws IOException
setBAT
in interface BlockList
bat
- the associated BlockAllocationTableIOException
Copyright © 2016 Open Microscopy Environment