01: package org.bouncycastle.util.test;
02:
03: import java.io.FilterOutputStream;
04: import java.io.IOException;
05: import java.io.OutputStream;
06:
07: public class UncloseableOutputStream extends FilterOutputStream {
08: public UncloseableOutputStream(OutputStream s) {
09: super (s);
10: }
11:
12: public void close() {
13: throw new RuntimeException(
14: "close() called on UncloseableOutputStream");
15: }
16:
17: public void write(byte[] b, int off, int len) throws IOException {
18: out.write(b, off, len);
19: }
20: }
|