BATManaged, BlockWritablepublic class SmallBlockTableWriter extends java.lang.Object implements BlockWritable, BATManaged
| Constructor | Description |
|---|---|
SmallBlockTableWriter(POIFSBigBlockSize bigBlockSize,
java.util.List documents,
RootProperty root) |
Creates new SmallBlockTable
|
| Modifier and Type | Method | 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 BATManagedpublic void setStartBlock(int start_block)
setStartBlock in interface BATManagedstart_block - public void writeBlocks(java.io.OutputStream stream)
throws java.io.IOException
writeBlocks in interface BlockWritablestream - the OutputStream to which the stored data should
be writtenjava.io.IOException - on problems writing to the specified
streamCopyright 2018 The Apache Software Foundation or its licensors, as applicable.