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