| |
|
| java.lang.Object org.apache.poi.poifs.storage.BigBlock org.apache.poi.poifs.storage.HeaderBlockWriter
HeaderBlockWriter | public class HeaderBlockWriter extends BigBlock implements HeaderBlockConstants(Code) | | The block containing the archive header
author: Marc Johnson (mjohnson at apache dot org) |
HeaderBlockWriter | public HeaderBlockWriter()(Code) | | Create a single instance initialized with default values
|
calculateXBATStorageRequirements | static int calculateXBATStorageRequirements(int blockCount)(Code) | | For a given number of BAT blocks, calculate how many XBAT
blocks will be needed
Parameters: blockCount - number of BAT blocks number of XBAT blocks needed |
setBATBlocks | public BATBlock[] setBATBlocks(int blockCount, int startBlock)(Code) | | Set BAT block parameters. Assumes that all BAT blocks are
contiguous. Will construct XBAT blocks if necessary and return
the array of newly constructed XBAT blocks.
Parameters: blockCount - count of BAT blocks Parameters: startBlock - index of first BAT block array of XBAT blocks; may be zero length, will not benull |
setPropertyStart | public void setPropertyStart(int startBlock)(Code) | | Set start of Property Table
Parameters: startBlock - the index of the first block of the PropertyTable |
setSBATBlockCount | public void setSBATBlockCount(int count)(Code) | | Set count of SBAT blocks
Parameters: count - the number of SBAT blocks |
setSBATStart | public void setSBATStart(int startBlock)(Code) | | Set start of small block allocation table
Parameters: startBlock - the index of the first big block of the smallblock allocation table |
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 |
|
|
|