G-Earth/Extensions/G-Translator_1.0.2/decompiled/okio/ForwardingSink.java
Administrator 368b92d87a G-Earth 1.5.4 beta 22 - Initial release
Komplettes G-Earth Paket inkl. JRE, Extensions und Tools.

Extensions:
- G-BuildTools, G-Click Ultimate, G-Loader, G-Manipulate
- G-Presets, G-Translator, G-Trigger, G-itemViewer
- Market Utils, Packet Info Explorer, Plants
- RandomRoomVisitor, RoomLogger, Sanbovir Photo Inspector
- SpyFriends, WallAligner, XabboScripter, xabbo
2026-03-16 09:45:04 +01:00

51 lines
1.0 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package okio;
import java.io.IOException;
import okio.Buffer;
import okio.Sink;
import okio.Timeout;
public abstract class ForwardingSink
implements Sink {
private final Sink delegate;
public ForwardingSink(Sink delegate) {
if (delegate == null) {
throw new IllegalArgumentException("delegate == null");
}
this.delegate = delegate;
}
public final Sink delegate() {
return this.delegate;
}
@Override
public void write(Buffer source, long byteCount) throws IOException {
this.delegate.write(source, byteCount);
}
@Override
public void flush() throws IOException {
this.delegate.flush();
}
@Override
public Timeout timeout() {
return this.delegate.timeout();
}
@Override
public void close() throws IOException {
this.delegate.close();
}
public String toString() {
return this.getClass().getSimpleName() + "(" + this.delegate.toString() + ")";
}
}