PlotSquared/Core/src/main/java/com/plotsquared/core/util/net/AbstractDelegateOutputStrea...

34 lines
779 B
Java
Raw Normal View History

2020-04-15 21:26:54 +02:00
package com.plotsquared.core.util.net;
2016-09-14 02:12:44 +02:00
import java.io.IOException;
import java.io.OutputStream;
public class AbstractDelegateOutputStream extends OutputStream {
2019-02-04 14:59:11 +01:00
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);
}
2019-02-04 16:18:50 +01:00
@Override public void write(byte[] b, int off, int len) throws IOException {
parent.write(b, off, len);
}
2019-02-04 14:59:11 +01:00
@Override public void flush() throws IOException {
parent.flush();
}
@Override public void close() throws IOException {
parent.close();
}
2016-09-14 02:12:44 +02:00
}