sisc.ser
Class MemoryRandomAccessInputStream
java.lang.Object
java.io.InputStream
sisc.ser.SeekableInputStream
sisc.ser.MemoryRandomAccessInputStream
- All Implemented Interfaces:
- java.io.Closeable, Seekable
public class MemoryRandomAccessInputStream
- extends SeekableInputStream
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected byte[] data
filePointer
protected int filePointer
MemoryRandomAccessInputStream
public MemoryRandomAccessInputStream(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
seek
public void seek(long pos)
throws java.io.IOException
- Throws:
java.io.IOException
getFilePointer
public long getFilePointer()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
skipBytes
public int skipBytes(int bc)
throws java.io.IOException
- Throws:
java.io.IOException