| java.lang.Object org.apache.poi.poifs.storage.BigBlock org.apache.poi.poifs.storage.DocumentBlock
DocumentBlock | public class DocumentBlock extends BigBlock (Code) | | A block of document data.
author: Marc Johnson (mjohnson at apache dot org) |
DocumentBlock | public DocumentBlock(InputStream stream) throws IOException(Code) | | Create a single instance initialized with data.
Parameters: stream - the InputStream delivering the data. exception: IOException - |
convert | public static DocumentBlock[] convert(byte[] array, int size)(Code) | | convert a single long array into an array of DocumentBlock
instances
Parameters: array - the byte array to be converted Parameters: size - the intended size of the array (which may be smaller) an array of DocumentBlock instances, filled from theinput array |
getFillByte | public static byte getFillByte()(Code) | | the fill byte used |
partiallyRead | public boolean partiallyRead()(Code) | | Was this a partially read block?
true if the block was only partially filled with data |
read | public static void read(DocumentBlock[] blocks, byte[] buffer, int offset)(Code) | | read data from an array of DocumentBlocks
Parameters: blocks - the blocks to read from Parameters: buffer - the buffer to write the data into Parameters: offset - the offset into the array of blocks to read from |
size | public int size()(Code) | | Get the number of bytes read for this block
bytes read into the block |
writeData | void writeData(OutputStream stream) throws IOException(Code) | | Write the block's data to an OutputStream
Parameters: stream - the OutputStream to which the stored data shouldbe written exception: IOException - on problems writing to the specifiedstream |
|
|