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: HeaderBlock [javadoc | source]
java.lang.Object
   org.apache.cocoon.poi.poifs.storage.BigBlock
      org.apache.cocoon.poi.poifs.storage.HeaderBlock

All Implemented Interfaces:
    BlockWritable

The block containing the archive header
Constructor:
 public HeaderBlock() 
 public HeaderBlock(InputStream stream) throws IOException 
    create a new HeaderBlock from an InputStream
    Parameters:
    stream - the source InputStream
    Throws:
    IOException - on errors or bad data
    exception: IOException - on errors or bad data
Method from org.apache.cocoon.poi.poifs.storage.HeaderBlock Summary:
calculateXBATStorageRequirements,   getBATArray,   getBATCount,   getPropertyStart,   getSBATStart,   getXBATCount,   getXBATIndex,   setBATBlocks,   setPropertyStart,   setSBATStart,   setXBATStart,   writeData
Methods from org.apache.cocoon.poi.poifs.storage.BigBlock:
doWriteData,   writeBlocks,   writeData
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.poifs.storage.HeaderBlock Detail:
 public static int calculateXBATStorageRequirements(int blockCount) 
    For a given number of BAT blocks, calculate how many XBAT blocks will be needed
 public int[] getBATArray() 
 public int getBATCount() 
 public int getPropertyStart() 
    get start of Property Table
 public int getSBATStart() 
 public int getXBATCount() 
 public int getXBATIndex() 
 public BATBlock[] setBATBlocks(int blockCount,
    int startBlock) 
    Set BAT block parameters. Assumes that all BAT blocks are contiguous. Will construct XBAT blocks if necessary and return the array of newly constructed XBAT blocks.
 public  void setPropertyStart(int startBlock) 
    Set start of Property Table
 public  void setSBATStart(int startBlock) 
    Set start of small block allocation table
 public  void setXBATStart(int startBlock) 
    Set start of XBAT
  void writeData(OutputStream stream) throws IOException 
    Write the block's data to an OutputStream