Files
df-research/tech.ml.dataset/java/tech/v3/dataset/NoCloseOutputStream.java
2026-02-08 11:20:43 -10:00

21 lines
593 B
Java
Vendored

package tech.v3.dataset;
import java.io.OutputStream;
import java.io.IOException;
public class NoCloseOutputStream extends OutputStream {
public final OutputStream stream;
public NoCloseOutputStream(OutputStream os) {
stream = os;
}
public void close() throws IOException {}
public void fluse() throws IOException { stream.flush(); }
public void write(byte[] b) throws IOException { stream.write(b); }
public void write(byte[] b, int off, int len) throws IOException {
stream.write(b,off,len);
}
public void write(int b) throws IOException { stream.write(b); }
}