public class RawDataBlock extends java.lang.Object implements ListManagedBlock
Constructor and Description |
---|
RawDataBlock(java.io.InputStream stream)
Constructor RawDataBlock
|
RawDataBlock(java.io.InputStream stream,
int blockSize)
Constructor RawDataBlock
|
Modifier and Type | Method and Description |
---|---|
boolean |
eof()
When we read the data, did we hit end of file?
|
int |
getBigBlockSize()
What's the big block size?
|
byte[] |
getData()
Get the data from the block
|
boolean |
hasData()
Did we actually find any data to read?
|
java.lang.String |
toString() |
public RawDataBlock(java.io.InputStream stream) throws java.io.IOException
stream
- the InputStream from which the data will be readjava.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.SMALLER_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)public boolean eof()
public boolean hasData()
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] getData() throws java.io.IOException
getData
in interface ListManagedBlock
java.io.IOException
- if there is no datapublic int getBigBlockSize()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.