public class RawDataBlock extends Object implements ListManagedBlock
Constructor and Description |
---|
RawDataBlock(RandomAccessInputStream stream,
int size,
long pointer)
Constructor RawDataBlock
|
Modifier and Type | Method and Description |
---|---|
boolean |
eof()
When we read the data, did we hit end of file?
|
int |
getBlockSize() |
byte[] |
getData()
Get the data from the block
|
int |
getLength() |
long |
getOffset() |
public RawDataBlock(RandomAccessInputStream stream, int size, long pointer) throws IOException
stream
- the InputStream from which the data will be readsize
- the block sizeIOException
- on I/O errors, and if an insufficient
amount of data is readpublic boolean eof() throws IOException
IOException
public int getBlockSize()
public long getOffset()
public int getLength()
public byte[] getData() throws IOException
getData
in interface ListManagedBlock
IOException
- if there is no dataCopyright © 2014 Open Microscopy Environment