com.imagero.uio.io
Class MSInputStream
java.lang.Object
java.io.InputStream
com.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
|
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 |
buf
protected byte[] buf
pos
protected int pos
count
protected int count
mark
protected int mark
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)
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