public class SmallBlockTableWriter extends java.lang.Object implements BlockWritable, BATManaged
Constructor and Description |
---|
SmallBlockTableWriter(POIFSBigBlockSize bigBlockSize,
java.util.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(java.io.OutputStream stream)
Write the storage to an OutputStream
|
public SmallBlockTableWriter(POIFSBigBlockSize bigBlockSize, java.util.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(java.io.OutputStream stream) throws java.io.IOException
writeBlocks
in interface BlockWritable
stream
- the OutputStream to which the stored data should
be writtenjava.io.IOException
- on problems writing to the specified
streamCopyright © 2005-2010 Potix Corporation. All Rights Reserved.