Save This Page
Home » cocoon-2.1.11-src » org.apache.cocoon.poi.poifs » storage » [javadoc | source]
org.apache.cocoon.poi.poifs.storage
public class: SmallBlockTable [javadoc | source]
java.lang.Object
   org.apache.cocoon.poi.poifs.storage.SmallBlockTable

All Implemented Interfaces:
    BlockWritable, BATManaged

This class implements storage for the small blocks used by small documents.
Constructor:
 public SmallBlockTable(List documents,
    RootProperty root) 
    Creates new SmallBlockTable
    Parameters:
    documents - a List of Document instances
    root - the Filesystem's root property
 public SmallBlockTable(RawDataBlockList blockList,
    RootProperty root,
    int sbatStart) throws IOException 
    Acquire a SmallBlockTable from an existing file
    Parameters:
    blockList - the raw data from which the small block table will be extracted
    root - the root property (which contains the start block and small block table size)
    sbatStart - the start block of the SBAT
    Throws:
    IOException -
    exception: IOException -
Method from org.apache.cocoon.poi.poifs.storage.SmallBlockTable Summary:
countBlocks,   getSBAT,   getSmallDocumentBlocks,   setStartBlock,   writeBlocks
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.poifs.storage.SmallBlockTable Detail:
 public int countBlocks() 
    Return the number of BigBlock's this instance uses
 public BlockAllocationTable getSBAT() 
    Get the SBAT
 public BlockList getSmallDocumentBlocks() 
    fetch the small document block list
 public  void setStartBlock(int start_block) 
    Set the start block for this instance
 public  void writeBlocks(OutputStream stream) throws IOException 
    Write the storage to an OutputStream