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 intavailable()intread(Array<byte> buf)intread(Array<byte> buf, int off, int len)intread()voidclose()OutputStreamgetOutputStream()-
-
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()
-
-
-
-