|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.poifs.storage.RawDataBlock
public class RawDataBlock
A big block created from an InputStream, holding the raw data
| Constructor Summary | |
|---|---|
RawDataBlock(java.io.InputStream stream)
Constructor RawDataBlock |
|
RawDataBlock(java.io.InputStream stream,
int blockSize)
Constructor RawDataBlock |
|
| Method Summary | |
|---|---|
boolean |
eof()
When we read the data, did we hit end of file? |
byte[] |
getData()
Get the data from the block |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawDataBlock(java.io.InputStream stream)
throws java.io.IOException
stream - the InputStream from which the data will be read
java.io.IOException - on I/O errors, and if an insufficient
amount of data is read (the InputStream must
be an exact multiple of the block size)
public RawDataBlock(java.io.InputStream stream,
int blockSize)
throws java.io.IOException
stream - the InputStream from which the data will be readblockSize - the size of the POIFS blocks, normally 512 bytes POIFSConstants.BIG_BLOCK_SIZE
java.io.IOException - on I/O errors, and if an insufficient
amount of data is read (the InputStream must
be an exact multiple of the block size)| Method Detail |
|---|
public boolean eof()
throws java.io.IOException
java.io.IOException
public byte[] getData()
throws java.io.IOException
getData in interface ListManagedBlockjava.io.IOException - if there is no data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||