public class RawDataBlock extends java.lang.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 java.io.IOException
stream - the InputStream from which the data will be readsize - the block sizejava.io.IOException - on I/O errors, and if an insufficient
amount of data is readpublic boolean eof()
throws java.io.IOException
java.io.IOExceptionpublic int getBlockSize()
public long getOffset()
public int getLength()
public byte[] getData()
throws java.io.IOException
getData in interface ListManagedBlockjava.io.IOException - if there is no dataCopyright © 2014 Open Microscopy Environment