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.InputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public java.io.OutputStream getOutputStream()