Class TeeInputStream
-
- All Implemented Interfaces:
-
java.io.Closeable
,java.lang.AutoCloseable
public class TeeInputStream extends InputStream
An input stream which copies anything read through it to another stream.
-
-
Constructor Summary
Constructors Constructor Description TeeInputStream(InputStream input, OutputStream output)
Base constructor.
-
Method Summary
Modifier and Type Method Description int
available()
int
read(Array<byte> buf)
int
read(Array<byte> buf, int off, int len)
int
read()
void
close()
OutputStream
getOutputStream()
-
-
Constructor Detail
-
TeeInputStream
TeeInputStream(InputStream input, OutputStream output)
Base constructor.- Parameters:
input
- input stream to be wrapped.output
- output stream to copy any input read to.
-
-
Method Detail
-
available
int available()
-
read
int read()
-
close
void close()
-
getOutputStream
OutputStream getOutputStream()
-
-
-
-