| Modifier and Type | Field and Description |
|---|---|
| private final InputStream | |
| private final OutputStream |
| Access | Constructor and Description |
|---|---|
| public | TeeInputStream(InputStream
input stream to be wrapped. input, OutputStream output stream to copy any input read to. output)Base constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public OutputStream | |
| public int | read(byte[]
the buffer into which the data is read. buf)Overrides java. b.
|
| public int | read(byte[]
the buffer into which the data is read. buf, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| public int | read()
Implements abstract java. |
| input | back to summary |
|---|---|
| private final InputStream input | |
| output | back to summary |
|---|---|
| private final OutputStream output | |
| TeeInputStream | back to summary |
|---|---|
| public TeeInputStream(InputStream input, OutputStream output) Base constructor.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() | |
| read | back to summary |
|---|---|
| public int read(byte[] buf) throws IOException Overrides java. Doc from java. Reads some number of bytes from the input stream and stores them into
the buffer array If the length of The first byte read is stored into element
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |