public class RawDataBlock extends Object implements ListManagedBlock
Modifier and Type | Field and Description |
---|---|
private boolean |
_eof |
private int |
blockSize |
private int |
length |
private long |
offset |
private RandomAccessInputStream |
stream |
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() |
private boolean _eof
private int blockSize
private RandomAccessInputStream stream
private long offset
private int length
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 © 2015 Open Microscopy Environment