public class RawDataBlockList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ListManagedBlock[] |
_blocks |
Constructor and Description |
---|
RawDataBlockList(RandomAccessInputStream stream,
int size)
Constructor RawDataBlockList
|
Modifier and Type | Method and Description |
---|---|
ListManagedBlock[] |
fetchBlocks(int startBlock)
get the blocks making up a particular stream in the list.
|
int |
getBigBlockSize() |
ListManagedBlock[] |
getBlocks() |
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
public RawDataBlockList(RandomAccessInputStream stream, int size) throws java.io.IOException
stream
- the InputStream from which the data will be readjava.io.IOException
- on I/O errors, and if an incomplete
block is readpublic int getBigBlockSize()
public ListManagedBlock[] getBlocks()
protected void setBlocks(ListManagedBlock[] blocks)
blocks
- blocks to be managedpublic void zap(int index)
public ListManagedBlock remove(int index) throws java.io.IOException
public ListManagedBlock[] fetchBlocks(int startBlock) throws java.io.IOException
fetchBlocks
in interface BlockList
startBlock
- the index of the first block in the streamjava.io.IOException
- if blocks are missingpublic void setBAT(BlockAllocationTableReader bat) throws java.io.IOException
Copyright © 2014 Open Microscopy Environment