mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
27 lines
502 B
Java
27 lines
502 B
Java
package java.io;
|
|
|
|
public class ObjectOutputStream extends OutputStream {
|
|
private final OutputStream out;
|
|
|
|
public ObjectOutputStream(OutputStream out) {
|
|
this.out = out;
|
|
}
|
|
|
|
public void write(int c) throws IOException {
|
|
out.write(c);
|
|
}
|
|
|
|
public void write(byte[] b, int offset, int length) throws IOException {
|
|
out.write(b, offset, length);
|
|
}
|
|
|
|
public void flush() throws IOException {
|
|
out.flush();
|
|
}
|
|
|
|
public void close() throws IOException {
|
|
out.close();
|
|
}
|
|
|
|
}
|