public interface BlockList
Modifier and Type | Method and Description |
---|---|
int |
blockCount() |
ListManagedBlock[] |
fetchBlocks(int startBlock,
int headerPropertiesStartBlock)
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
|
void |
zap(int index)
remove the specified block from the list
|
void zap(int index)
index
- the index of the specified block; if the index is
out of range, that's okListManagedBlock remove(int index) throws IOException
index
- the index of the specified blockIOException
- if the index is out of range or has
already been removedListManagedBlock[] fetchBlocks(int startBlock, int headerPropertiesStartBlock) throws IOException
startBlock
- the index of the first block in the streamheaderPropertiesStartBlock
- the index of the first header block in the streamIOException
- if blocks are missingvoid setBAT(BlockAllocationTableReader bat) throws IOException
bat
- the associated BlockAllocationTableIOException
int blockCount()
Copyright © 2020. All rights reserved.