| |
|
| java.lang.Object org.apache.poi.poifs.storage.BigBlock org.apache.poi.poifs.storage.BATBlock
BATBlock | public class BATBlock extends BigBlock (Code) | | A block of block allocation table entries. BATBlocks are created
only through a static factory method: createBATBlocks.
author: Marc Johnson (mjohnson at apache dot org) |
calculateStorageRequirements | public static int calculateStorageRequirements(int entryCount)(Code) | | Calculate how many BATBlocks are needed to hold a specified
number of BAT entries.
Parameters: entryCount - the number of entries the number of BATBlocks needed |
calculateXBATStorageRequirements | public static int calculateXBATStorageRequirements(int entryCount)(Code) | | Calculate how many XBATBlocks are needed to hold a specified
number of BAT entries.
Parameters: entryCount - the number of entries the number of XBATBlocks needed |
createBATBlocks | public static BATBlock[] createBATBlocks(int[] entries)(Code) | | Create an array of BATBlocks from an array of int block
allocation table entries
Parameters: entries - the array of int entries the newly created array of BATBlocks |
createXBATBlocks | public static BATBlock[] createXBATBlocks(int[] entries, int startBlock)(Code) | | Create an array of XBATBlocks from an array of int block
allocation table entries
Parameters: entries - the array of int entries Parameters: startBlock - the start block of the array of XBAT blocks the newly created array of BATBlocks |
entriesPerBlock | final public static int entriesPerBlock()(Code) | | number of entries per block |
entriesPerXBATBlock | final public static int entriesPerXBATBlock()(Code) | | number of entries per XBAT block |
getXBATChainOffset | final public static int getXBATChainOffset()(Code) | | offset of chain index of XBAT block |
writeData | void writeData(OutputStream stream) throws IOException(Code) | | Write the block's data to an OutputStream
Parameters: stream - the OutputStream to which the stored data shouldbe written exception: IOException - on problems writing to the specifiedstream |
|
|
|