public class TeeInputStream extends InputStream
Constructor and Description |
---|
TeeInputStream(InputStream input,
OutputStream output)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
OutputStream |
getOutputStream() |
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int off,
int len) |
mark, markSupported, reset, skip
public TeeInputStream(InputStream input, OutputStream output)
input
- input stream to be wrapped.output
- output stream to copy any input read to.public int available() throws IOException
available
in class InputStream
IOException
public int read(byte[] buf) throws IOException
read
in class InputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public OutputStream getOutputStream()
Copyright © 2021 BouncyCastle.org. All rights reserved.