|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.poifs.storage.DocumentBlock
public final class DocumentBlock
A block of document data.
Constructor Summary | |
---|---|
DocumentBlock(java.io.InputStream stream,
POIFSBigBlockSize bigBlockSize)
Create a single instance initialized with data. |
|
DocumentBlock(RawDataBlock block)
create a document block from a raw data block |
Method Summary | |
---|---|
static DocumentBlock[] |
convert(POIFSBigBlockSize bigBlockSize,
byte[] array,
int size)
convert a single long array into an array of DocumentBlock instances |
static DataInputBlock |
getDataInputBlock(DocumentBlock[] blocks,
int offset)
|
static byte |
getFillByte()
|
boolean |
partiallyRead()
Was this a partially read block? |
int |
size()
Get the number of bytes read for this block |
void |
writeBlocks(java.io.OutputStream stream)
Write the storage to an OutputStream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentBlock(RawDataBlock block) throws java.io.IOException
block
- the raw data block
java.io.IOException
public DocumentBlock(java.io.InputStream stream, POIFSBigBlockSize bigBlockSize) throws java.io.IOException
stream
- the InputStream delivering the data.
java.io.IOException
Method Detail |
---|
public int size()
public boolean partiallyRead()
public static byte getFillByte()
public static DocumentBlock[] convert(POIFSBigBlockSize bigBlockSize, byte[] array, int size)
array
- the byte array to be convertedsize
- the intended size of the array (which may be smaller)
public static DataInputBlock getDataInputBlock(DocumentBlock[] blocks, int offset)
public void writeBlocks(java.io.OutputStream stream) throws java.io.IOException
writeBlocks
in interface BlockWritable
stream
- the OutputStream to which the stored data should
be written
java.io.IOException
- on problems writing to the specified
stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |