package org.jboss.util.stream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import org.jboss.util.NullArgumentException;
public abstract class ObjectOutputStreamAdapter
extends ObjectOutputStream
{
protected ObjectOutputStream out;
public ObjectOutputStreamAdapter(ObjectOutputStream out)
throws IOException
{
super();
if (out == null)
throw new NullArgumentException("out");
this.out = out;
}
protected void writeObjectOverride(Object obj) throws IOException {
out.writeObject(obj);
}
public void useProtocolVersion(int version) throws IOException {
out.useProtocolVersion(version);
}
public void defaultWriteObject() throws IOException {
out.defaultWriteObject();
}
public ObjectOutputStream.PutField putFields() throws IOException {
return out.putFields();
}
public void writeFields() throws IOException {
out.writeFields();
}
public void reset() throws IOException {
out.reset();
}
public void write(int data) throws IOException {
out.write(data);
}
public void write(byte b[]) throws IOException {
out.write(b);
}
public void write(byte b[], int off, int len) throws IOException {
out.write(b, off, len);
}
public void flush() throws IOException {
out.flush();
}
public void close() throws IOException {
out.close();
}
public void writeBoolean(boolean data) throws IOException {
out.writeBoolean(data);
}
public void writeByte(int data) throws IOException {
out.writeByte(data);
}
public void writeShort(int data) throws IOException {
out.writeShort(data);
}
public void writeChar(int data) throws IOException {
out.writeChar(data);
}
public void writeInt(int data) throws IOException {
out.writeInt(data);
}
public void writeLong(long data) throws IOException {
out.writeLong(data);
}
public void writeFloat(float data) throws IOException {
out.writeFloat(data);
}
public void writeDouble(double data) throws IOException {
out.writeDouble(data);
}
public void writeBytes(String data) throws IOException {
out.writeBytes(data);
}
public void writeChars(String data) throws IOException {
out.writeChars(data);
}
public void writeUTF(String s) throws IOException {
out.writeUTF(s);
}
}