Package org.bouncycastle.util.test
Class UncloseableOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.bouncycastle.util.test.UncloseableOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
This is a testing utility class to check the property that an
OutputStream
is never
closed in some particular context - typically when wrapped by another OutputStream
that
should not be forwarding its OutputStream.close()
calls. Not needed in production code.-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
UncloseableOutputStream
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-