sisc.ser
Class MemoryRandomAccessInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by sisc.ser.SeekableInputStream
          extended by sisc.ser.MemoryRandomAccessInputStream
All Implemented Interfaces:
java.io.Closeable, Seekable

public class MemoryRandomAccessInputStream
extends SeekableInputStream


Field Summary
protected  byte[] data
           
protected  int filePointer
           
 
Constructor Summary
MemoryRandomAccessInputStream(java.io.InputStream in)
           
 
Method Summary
 long getFilePointer()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void seek(long pos)
           
 int skipBytes(int bc)
           
 
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
 

Field Detail

data

protected byte[] data

filePointer

protected int filePointer
Constructor Detail

MemoryRandomAccessInputStream

public MemoryRandomAccessInputStream(java.io.InputStream in)
                              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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