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

All Implemented Interfaces:
    BlockWritable, ListManagedBlock

Storage for documents that are too small to use regular DocumentBlocks for their data
Method from org.apache.poi.poifs.storage.SmallDocumentBlock Summary:
calcSize,   convert,   convert,   extract,   fill,   getData,   read,   writeBlocks
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.poifs.storage.SmallDocumentBlock Detail:
 public static int calcSize(int size) 
    Calculate the storage size of a set of SmallDocumentBlocks
 public static SmallDocumentBlock[] convert(byte[] array,
    int size) 
    convert a single long array into an array of SmallDocumentBlock instances
 public static SmallDocumentBlock[] convert(BlockWritable[] store,
    int size) throws IOException, ArrayIndexOutOfBoundsException 
    Factory for creating SmallDocumentBlocks from DocumentBlocks
 public static List extract(ListManagedBlock[] blocks) throws IOException 
    create a list of SmallDocumentBlock's from raw data
 public static int fill(List blocks) 
    fill out a List of SmallDocumentBlocks so that it fully occupies a set of big blocks
 public byte[] getData() throws IOException 
    Get the data from the block
 public static  void read(BlockWritable[] blocks,
    byte[] buffer,
    int offset) 
    read data from an array of SmallDocumentBlocks
 public  void writeBlocks(OutputStream stream) throws IOException 
    Write the storage to an OutputStream