public class TeeInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
TeeInputStream(java.io.InputStream input,
java.io.OutputStream output)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.OutputStream |
getOutputStream() |
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int off,
int len) |
public TeeInputStream(java.io.InputStream input,
java.io.OutputStream output)
input - input stream to be wrapped.output - output stream to copy any input read to.public int read(byte[] buf)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()