java.io.Closeable, java.lang.AutoCloseablepublic class TeeInputStream
extends java.io.InputStream
| Constructor | Description |
|---|---|
TeeInputStream(java.io.InputStream input,
java.io.OutputStream output) |
Base constructor.
|
| Modifier and Type | Method | 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.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()