Package org.bouncycastle.util.io
Class TeeInputStream
java.lang.Object
java.io.InputStream
org.bouncycastle.util.io.TeeInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An input stream which copies anything read through it to another stream.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
TeeInputStream
Base constructor.- Parameters:
input- input stream to be wrapped.output- output stream to copy any input read to.
-
-
Method Details
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
getOutputStream
-