Package org.bouncycastle.util.test
Class UncloseableOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.bouncycastle.util.test.UncloseableOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class UncloseableOutputStream extends java.io.FilterOutputStream
This is a testing utility class to check the property that anOutputStream
is never closed in some particular context - typically when wrapped by anotherOutputStream
that should not be forwarding itsOutputStream.close()
calls. Not needed in production code.
-
-
Constructor Summary
Constructors Constructor Description UncloseableOutputStream(java.io.OutputStream s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
write(byte[] b, int off, int len)
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterOutputStream
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
-