Package org.terrier.utility.io
Class RandomDataInputMemory.SeeakableByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- org.terrier.utility.io.RandomDataInputMemory.SeeakableByteArrayInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- RandomDataInputMemory
public static class RandomDataInputMemory.SeeakableByteArrayInputStream extends java.io.ByteArrayInputStream
class which allows seeking over a ByteArrayInputStream
-
-
Constructor Summary
Constructors Constructor Description SeeakableByteArrayInputStream(byte[] buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBuffer()
long
getFilePointer()
long
length()
int
read(byte[] dst, long offset, int arrayOffset, int length)
void
seek(long _pos)
-
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
-
-