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

All Implemented Interfaces:
    BlockWritable

A block of document data.
Constructor:
 public DocumentBlock(RawDataBlock block) throws IOException 
    create a document block from a raw data block
    Parameters:
    block - the raw data block
    Throws:
    IOException -
    exception: IOException -
 public DocumentBlock(InputStream stream) throws IOException 
    Create a single instance initialized with data.
    Parameters:
    stream - the InputStream delivering the data.
    Throws:
    IOException -
    exception: IOException -
Method from org.apache.cocoon.poi.poifs.storage.DocumentBlock Summary:
partiallyRead,   read,   size,   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.DocumentBlock Detail:
 public boolean partiallyRead() 
    Was this a partially read block?
 public static  void read(DocumentBlock[] blocks,
    byte[] buffer,
    int offset) 
    read data from an array of DocumentBlocks
 public int size() 
    Get the number of bytes read for this block
  void writeData(OutputStream stream) throws IOException 
    Write the block's data to an OutputStream