|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.poifs.storage.HeaderBlockWriter
public class HeaderBlockWriter
The block containing the archive header
Field Summary |
---|
Fields inherited from interface org.apache.poi.poifs.storage.HeaderBlockConstants |
---|
_bat_array_offset, _bat_count_offset, _max_bats_in_header, _property_start_offset, _sbat_block_count_offset, _sbat_start_offset, _signature, _signature_offset, _xbat_count_offset, _xbat_start_offset |
Constructor Summary | |
---|---|
HeaderBlockWriter()
Create a single instance initialized with default values |
Method Summary | |
---|---|
protected void |
doWriteData(java.io.OutputStream stream,
byte[] data)
Default implementation of write for extending classes that contain their data in a simple array of bytes. |
BATBlock[] |
setBATBlocks(int blockCount,
int startBlock)
Set BAT block parameters. |
void |
setPropertyStart(int startBlock)
Set start of Property Table |
void |
setSBATBlockCount(int count)
Set count of SBAT blocks |
void |
setSBATStart(int startBlock)
Set start of small block allocation table |
void |
writeBlocks(java.io.OutputStream stream)
Write the storage to an OutputStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HeaderBlockWriter()
Method Detail |
---|
public BATBlock[] setBATBlocks(int blockCount, int startBlock)
blockCount
- count of BAT blocksstartBlock
- index of first BAT block
public void setPropertyStart(int startBlock)
startBlock
- the index of the first block of the Property
Tablepublic void setSBATStart(int startBlock)
startBlock
- the index of the first big block of the small
block allocation tablepublic void setSBATBlockCount(int count)
count
- the number of SBAT blocksprotected void doWriteData(java.io.OutputStream stream, byte[] data) throws java.io.IOException
stream
- the OutputStream to which the data should be
written.data
- the byte array of to be written.
java.io.IOException
- on problems writing to the specified
stream.public void writeBlocks(java.io.OutputStream stream) throws java.io.IOException
writeBlocks
in interface BlockWritable
stream
- the OutputStream to which the stored data should
be written
java.io.IOException
- on problems writing to the specified
stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |