public class DataOutputStream
{
	private myWriter w = new myWriter();

	public void writeShort(short i)
	{
		w.writeShort(i);
	}

	public void writeInt(int i)
	{
		w.writeInt(i);
	}

	public void write(sbyte[] data)
	{
		w.writeSByte(data);
	}

	public sbyte[] toByteArray()
	{
		return w.getData();
	}

	public void close()
	{
		w.Close();
	}

	public void writeByte(sbyte b)
	{
		w.writeByte(b);
	}

	public void writeUTF(string name)
	{
		w.writeUTF(name);
	}

	public void writeBoolean(bool b)
	{
		w.writeBoolean(b);
	}
}
