public class MemoryRandomAccess extends Object implements RandomAccess
Modifier and Type | Field and Description |
---|---|
private byte[] |
data |
private long |
position |
Constructor and Description |
---|
MemoryRandomAccess(byte[] data) |
public void close() throws IOException
close
in interface RandomAccess
IOException
public long length() throws IOException
length
in interface RandomAccess
IOException
public void seek(long l) throws IOException
seek
in interface RandomAccess
IOException
public long read(byte[] ba, int offset, int length) throws IOException
read
in interface RandomAccess
IOException
Copyright © 2015 Open Microscopy Environment