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.FilterOutputStreamThis is a testing utility class to check the property that anOutputStreamis never closed in some particular context - typically when wrapped by anotherOutputStreamthat 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 voidclose()voidwrite(byte[] b, int off, int len) 
 - 
 
- 
- 
Method Detail
- 
close
public void close()
- Specified by:
 closein interfacejava.lang.AutoCloseable- Specified by:
 closein interfacejava.io.Closeable- Overrides:
 closein classjava.io.FilterOutputStream
 
- 
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
 writein classjava.io.FilterOutputStream- Throws:
 java.io.IOException
 
 - 
 
 -