34 lines
779 B
Java
34 lines
779 B
Java
|
package com.plotsquared.core.util.net;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import java.io.OutputStream;
|
||
|
|
||
|
public class AbstractDelegateOutputStream extends OutputStream {
|
||
|
private final OutputStream parent;
|
||
|
|
||
|
public AbstractDelegateOutputStream(OutputStream os) {
|
||
|
this.parent = os;
|
||
|
}
|
||
|
|
||
|
@Override public void write(int b) throws IOException {
|
||
|
parent.write(b);
|
||
|
}
|
||
|
|
||
|
@Override public void write(byte[] b) throws IOException {
|
||
|
parent.write(b);
|
||
|
}
|
||
|
|
||
|
@Override public void write(byte[] b, int off, int len) throws IOException {
|
||
|
parent.write(b, off, len);
|
||
|
}
|
||
|
|
||
|
@Override public void flush() throws IOException {
|
||
|
parent.flush();
|
||
|
}
|
||
|
|
||
|
@Override public void close() throws IOException {
|
||
|
parent.close();
|
||
|
}
|
||
|
}
|
||
|
|