package net.minecraft.util; import java.io.DataOutput; import java.io.IOException; import net.minecraft.SuppressForbidden; public class DelegateDataOutput implements DataOutput { private final DataOutput parent; public DelegateDataOutput(final DataOutput parent) { this.parent = parent; } public void write(final int b) throws IOException { this.parent.write(b); } public void write(final byte[] b) throws IOException { this.parent.write(b); } public void write(final byte[] b, final int off, final int len) throws IOException { this.parent.write(b, off, len); } public void writeBoolean(final boolean v) throws IOException { this.parent.writeBoolean(v); } public void writeByte(final int v) throws IOException { this.parent.writeByte(v); } public void writeShort(final int v) throws IOException { this.parent.writeShort(v); } public void writeChar(final int v) throws IOException { this.parent.writeChar(v); } public void writeInt(final int v) throws IOException { this.parent.writeInt(v); } public void writeLong(final long v) throws IOException { this.parent.writeLong(v); } public void writeFloat(final float v) throws IOException { this.parent.writeFloat(v); } public void writeDouble(final double v) throws IOException { this.parent.writeDouble(v); } @SuppressForbidden( reason = "Delegation is not use" ) public void writeBytes(final String s) throws IOException { this.parent.writeBytes(s); } public void writeChars(final String s) throws IOException { this.parent.writeChars(s); } public void writeUTF(final String s) throws IOException { this.parent.writeUTF(s); } }