public class SmallBlockTableWriter extends Object implements BlockWritable, BATManaged
Modifier and Type | Field and Description |
---|---|
private int |
_big_block_count |
private RootProperty |
_root |
private BlockAllocationTableWriter |
_sbat |
private List |
_small_blocks |
Constructor and Description |
---|
SmallBlockTableWriter(List documents,
RootProperty root)
Creates new SmallBlockTable
|
Modifier and Type | Method and Description |
---|---|
int |
countBlocks()
Return the number of BigBlock's this instance uses
|
BlockAllocationTableWriter |
getSBAT()
Get the SBAT
|
int |
getSBATBlockCount()
Get the number of SBAT blocks
|
void |
setStartBlock(int start_block)
Set the start block for this instance
|
void |
writeBlocks(OutputStream stream)
Write the storage to an OutputStream
|
private BlockAllocationTableWriter _sbat
private List _small_blocks
private int _big_block_count
private RootProperty _root
public SmallBlockTableWriter(List documents, RootProperty root)
documents
- a List of POIFSDocument instancesroot
- the Filesystem's root propertypublic int getSBATBlockCount()
public BlockAllocationTableWriter getSBAT()
public int countBlocks()
countBlocks
in interface BATManaged
public void setStartBlock(int start_block)
setStartBlock
in interface BATManaged
start_block
- public void writeBlocks(OutputStream stream) throws IOException
writeBlocks
in interface BlockWritable
stream
- the OutputStream to which the stored data should
be writtenIOException
- on problems writing to the specified
streamCopyright © 2016 Open Microscopy Environment