public class HeaderBlockWriter extends Object implements HeaderBlockConstants
_bat_array_offset, _bat_count_offset, _property_start_offset, _sbat_block_count_offset, _sbat_start_offset, _signature, _signature_offset, _xbat_count_offset, _xbat_start_offset| Constructor and Description | 
|---|
| HeaderBlockWriter(int blockSize)Create a single instance initialized with default values | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | doWriteData(OutputStream stream,
           byte[] data)Default implementation of write for extending classes that
 contain their data in a simple array of bytes. | 
| int | getBigBlockSize() | 
| BATBlock[] | setBATBlocks(int blockCount,
            int startBlock,
            int size)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(OutputStream stream)Write the storage to an OutputStream | 
public HeaderBlockWriter(int blockSize)
public int getBigBlockSize()
public BATBlock[] setBATBlocks(int blockCount, int startBlock, int size)
blockCount - count of BAT blocksstartBlock - index of first BAT blockpublic 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(OutputStream stream, byte[] data) throws IOException
stream - the OutputStream to which the data should be
               written.data - the byte array of to be written.IOException - on problems writing to the specified
            stream.public void writeBlocks(OutputStream stream) throws IOException
writeBlocks in interface BlockWritablestream - the OutputStream to which the stored data should
               be writtenIOException - on problems writing to the specified
            streamCopyright © 2014 Open Microscopy Environment