lapisx.io
Class TeeStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
lapisx.io.TeeStream
- public class TeeStream
- extends FilterInputStream
TeeStream is used to simultaneously write to an OutputStream
(passed as an argument to the constructor) as bytes are read from
the underlying InputStream.
Method Summary |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected OutputStream out
TeeStream
public TeeStream(InputStream in,
OutputStream out)
read
public int read()
throws IOException
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException