org.apache.poi.poifs.storage
Class SmallDocumentBlockList
- java.lang.Object
-
- org.apache.poi.poifs.storage.SmallDocumentBlockList
-
- All Implemented Interfaces:
- BlockList
public class SmallDocumentBlockList extends java.lang.ObjectA list of SmallDocumentBlocks instances, and methods to manage the list
-
-
Constructor Summary
Constructors Constructor and Description SmallDocumentBlockList(java.util.List blocks)Constructor SmallDocumentBlockList
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intblockCount()Returns the count of the number of blocksListManagedBlock[]fetchBlocks(int startBlock, int headerPropertiesStartBlock)get the blocks making up a particular stream in the list.ListManagedBlockremove(int index)remove and return the specified block from the listvoidsetBAT(BlockAllocationTableReader bat)set the associated BlockAllocationTablevoidzap(int index)remove the specified block from the list
-
-
-
Constructor Detail
-
SmallDocumentBlockList
public SmallDocumentBlockList(java.util.List blocks)
Constructor SmallDocumentBlockList- Parameters:
blocks- a list of SmallDocumentBlock instances
-
-
Method Detail
-
zap
public void zap(int index)
remove the specified block from the list
-
remove
public ListManagedBlock remove(int index) throws java.io.IOException
remove and return the specified block from the list
-
fetchBlocks
public ListManagedBlock[] fetchBlocks(int startBlock, int headerPropertiesStartBlock) throws java.io.IOException
get the blocks making up a particular stream in the list. The blocks are removed from the list.- Specified by:
fetchBlocksin interfaceBlockList- Parameters:
startBlock- the index of the first block in the streamheaderPropertiesStartBlock- the index of the first header block in the stream- Returns:
- the stream as an array of correctly ordered blocks
- Throws:
java.io.IOException- if blocks are missing
-
setBAT
public void setBAT(BlockAllocationTableReader bat) throws java.io.IOException
set the associated BlockAllocationTable
-
blockCount
public int blockCount()
Returns the count of the number of blocks- Specified by:
blockCountin interfaceBlockList
-
-
DataMelt 3.0 © DataMelt by jWork.ORG