what-the-bank/sources/org/bouncycastle/util/test/UncloseableOutputStream.java

23 lines
757 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.util.test;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/* loaded from: classes6.dex */
public class UncloseableOutputStream extends FilterOutputStream {
@Override // java.io.FilterOutputStream, java.io.OutputStream
public void write(byte[] bArr, int i, int i2) throws IOException {
((FilterOutputStream) this).out.write(bArr, i, i2);
}
@Override // java.io.FilterOutputStream, java.io.OutputStream, java.io.Closeable, java.lang.AutoCloseable
public void close() {
throw new RuntimeException("close() called on UncloseableOutputStream");
}
public UncloseableOutputStream(OutputStream outputStream) {
super(outputStream);
}
}