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
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
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
getOutputStream
-