|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.poifs.storage.SmallDocumentBlockList
public class SmallDocumentBlockList
A list of SmallDocumentBlocks instances, and methods to manage the list
Constructor Summary | |
---|---|
SmallDocumentBlockList(java.util.List blocks)
Constructor SmallDocumentBlockList |
Method Summary | |
---|---|
int |
blockCount()
Returns the count of the number of blocks |
ListManagedBlock[] |
fetchBlocks(int startBlock,
int headerPropertiesStartBlock)
get the blocks making up a particular stream in the list. |
protected ListManagedBlock |
get(int index)
Unit testing method. |
protected int |
remainingBlocks()
Returns the number of remaining blocks |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmallDocumentBlockList(java.util.List blocks)
blocks
- a list of SmallDocumentBlock instancesMethod Detail |
---|
protected void setBlocks(ListManagedBlock[] blocks)
blocks
- blocks to be managedpublic void zap(int index)
zap
in interface BlockList
index
- the index of the specified block; if the index is
out of range, that's okprotected ListManagedBlock get(int index)
public ListManagedBlock remove(int index) throws java.io.IOException
remove
in interface BlockList
index
- the index of the specified block
java.io.IOException
- if the index is out of range or has
already been removedpublic ListManagedBlock[] fetchBlocks(int startBlock, int headerPropertiesStartBlock) throws java.io.IOException
fetchBlocks
in interface BlockList
startBlock
- the index of the first block in the streamheaderPropertiesStartBlock
- the index of the first header block in the stream
java.io.IOException
- if blocks are missingpublic void setBAT(BlockAllocationTableReader bat) throws java.io.IOException
setBAT
in interface BlockList
bat
- the associated BlockAllocationTable
java.io.IOException
public int blockCount()
blockCount
in interface BlockList
protected int remainingBlocks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |