Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache.poi.poifs » storage » [javadoc | source]
org.apache.poi.poifs.storage
public class: BATBlock [javadoc | source]
java.lang.Object
   org.apache.poi.poifs.storage.BigBlock
      org.apache.poi.poifs.storage.BATBlock

All Implemented Interfaces:
    BlockWritable

A block of block allocation table entries. BATBlocks are created only through a static factory method: createBATBlocks.
Method from org.apache.poi.poifs.storage.BATBlock Summary:
calculateStorageRequirements,   calculateXBATStorageRequirements,   createBATBlocks,   createXBATBlocks,   entriesPerBlock,   entriesPerXBATBlock,   getXBATChainOffset,   writeData
Methods from org.apache.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.poi.poifs.storage.BATBlock Detail:
 public static int calculateStorageRequirements(int entryCount) 
    Calculate how many BATBlocks are needed to hold a specified number of BAT entries.
 public static int calculateXBATStorageRequirements(int entryCount) 
    Calculate how many XBATBlocks are needed to hold a specified number of BAT entries.
 public static BATBlock[] createBATBlocks(int[] entries) 
    Create an array of BATBlocks from an array of int block allocation table entries
 public static BATBlock[] createXBATBlocks(int[] entries,
    int startBlock) 
    Create an array of XBATBlocks from an array of int block allocation table entries
 public static final int entriesPerBlock() 
 public static final int entriesPerXBATBlock() 
 public static final int getXBATChainOffset() 
  void writeData(OutputStream stream) throws IOException 
    Write the block's data to an OutputStream