Package mdbtools.examples
Class MemoryRandomAccess
- java.lang.Object
-
- mdbtools.examples.MemoryRandomAccess
-
- All Implemented Interfaces:
RandomAccess
public class MemoryRandomAccess extends Object implements RandomAccess
-
-
Constructor Summary
Constructors Constructor Description MemoryRandomAccess(byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
length()
long
read(byte[] ba, int offset, int length)
void
seek(long l)
-
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceRandomAccess
- Throws:
IOException
-
length
public long length() throws IOException
- Specified by:
length
in interfaceRandomAccess
- Throws:
IOException
-
seek
public void seek(long l) throws IOException
- Specified by:
seek
in interfaceRandomAccess
- Throws:
IOException
-
read
public long read(byte[] ba, int offset, int length) throws IOException
- Specified by:
read
in interfaceRandomAccess
- Throws:
IOException
-
-