RawDataBlockList
, SmallDocumentBlockList
public interface BlockList
Modifier and Type | Method | 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 java.io.IOException
index
- the index of the specified blockjava.io.IOException
- if the index is out of range or has
already been removedListManagedBlock[] fetchBlocks(int startBlock, int headerPropertiesStartBlock) throws java.io.IOException
startBlock
- the index of the first block in the streamheaderPropertiesStartBlock
- the index of the first header block in the streamjava.io.IOException
- if blocks are missingvoid setBAT(BlockAllocationTableReader bat) throws java.io.IOException
bat
- the associated BlockAllocationTablejava.io.IOException
int blockCount()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.