public class TeeInputStream extends FilterInputStream
InputStream
, writing to a destination OutputStream
any bytes read
from this object.
Does not close either the InputStream or the OutputStream automatically.
in
Constructor and Description |
---|
TeeInputStream(InputStream inputStream,
OutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int startIndex,
int numBytesToRead) |
available, close, mark, markSupported, reset, skip
public TeeInputStream(InputStream inputStream, OutputStream outputStream)
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buffer) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buffer, int startIndex, int numBytesToRead) throws IOException
read
in class FilterInputStream
IOException