com.imagero.uio.io
Class MSInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bycom.imagero.uio.io.MSInputStream

public class MSInputStream
extends java.io.InputStream

MSInputStream.java
MS = MultipleSource


Field Summary
protected  byte[] buf
           
protected  int count
           
protected  int mark
           
protected  int pos
           
 
Constructor Summary
MSInputStream(Buffer[] ds)
          create InputStream over multiple Buffers
MSInputStream(BufferManager bufferManager)
           
MSInputStream(java.util.Vector v)
          create InputStream over multiple byte arrays
 
Method Summary
 int available()
           
protected  int countBytes()
           
 void debug()
           
 void debug(int len)
           
 void debug(java.io.OutputStream out)
           
protected  void gotoAbsPos(int absPos)
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
protected  void nextArray()
           
static void printHex(int value)
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
close, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

protected byte[] buf

pos

protected int pos

count

protected int count

mark

protected int mark
Constructor Detail

MSInputStream

public MSInputStream(java.util.Vector v)
create InputStream over multiple byte arrays

Parameters:
v - Vector that contains some byte arrays

MSInputStream

public MSInputStream(Buffer[] ds)
create InputStream over multiple Buffers

Parameters:
ds - Buffer array

MSInputStream

public MSInputStream(BufferManager bufferManager)
Method Detail

countBytes

protected int countBytes()

nextArray

protected void nextArray()

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

printHex

public static void printHex(int value)

skip

public long skip(long n)

available

public int available()

mark

public void mark(int readAheadLimit)

gotoAbsPos

protected void gotoAbsPos(int absPos)
                   throws java.io.IOException
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Throws:
java.io.IOException

markSupported

public boolean markSupported()

debug

public void debug(int len)
           throws java.io.IOException
Throws:
java.io.IOException

debug

public void debug()
           throws java.io.IOException
Throws:
java.io.IOException

debug

public void debug(java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException