@@ -0,0 +1,2287 @@
+/* Copyright (c) 2008-2013, Avian Contributors%0A%0A   Permission to use, copy, modify, and/or distribute this software%0A   for any purpose with or without fee is hereby granted, provided%0A   that the above copyright notice and this permission notice appear%0A   in all copies.%0A%0A   There is NO WARRANTY for this software.  See license.txt for%0A   details. */%0A%0Apackage java.io;%0A%0Apublic class DataOutputStream extends OutputStream implements DataOutput %7B%0A  private OutputStream out;%0A%0A  public DataOutputStream(OutputStream out) %7B%0A    this.out = out;%0A  %7D%0A%0A  public void close() throws IOException %7B%0A    out.close();%0A  %7D%0A%0A  public void flush() throws IOException %7B%0A    out.flush();%0A  %7D%0A%0A  public void write(byte%5B%5D buffer) throws IOException %7B%0A    out.write(buffer);%0A  %7D%0A%0A  public void write(byte%5B%5D buffer, int offset, int length) throws IOException %7B%0A    out.write(buffer, offset, length);%0A  %7D%0A%0A  public void write(int b) throws IOException %7B%0A    out.write(b);%0A  %7D%0A%0A  public void writeBoolean(boolean b) throws IOException %7B%0A    writeByte(b ? 1 : 0);%0A  %7D%0A%0A  public void writeByte(int b) throws IOException %7B%0A    out.write(b);%0A  %7D%0A%0A  public void writeShort(int s) throws IOException %7B%0A    write((byte)(s %3E%3E 8));%0A    write((byte)s);%0A  %7D%0A%0A  public void writeInt(int i) throws IOException %7B%0A    write((byte)(i %3E%3E 24));%0A    write((byte)(i %3E%3E 16));%0A    write((byte)(i %3E%3E 8));%0A    write((byte)i);%0A  %7D%0A%0A  public void writeFloat(float f) throws IOException %7B%0A    writeInt(Float.floatToIntBits(f));%0A  %7D%0A%0A  public void writeDouble(double d) throws IOException %7B%0A    writeLong(Double.doubleToLongBits(d));%0A  %7D%0A%0A  public void writeLong(long l) throws IOException %7B%0A    write((byte)(l %3E%3E 56));%0A    write((byte)(l %3E%3E 48));%0A    write((byte)(l %3E%3E 40));%0A    write((byte)(l %3E%3E 32));%0A    write((byte)(l %3E%3E 24));%0A    write((byte)(l %3E%3E 16));%0A    write((byte)(l %3E%3E 8));%0A    write((byte)l);%0A  %7D%0A%0A  public void writeChar(int ch) throws IOException %7B%0A    write((byte)(ch %3E%3E 8));%0A    write((byte)ch);%0A  %7D%0A%0A  public void writeChars(String s) throws IOException %7B%0A    for (char ch : s.toCharArray()) %7B%0A      writeChar(ch & 0xffff);%0A    %7D%0A  %7D%0A%0A  public void writeBytes(String s) throws IOException %7B%0A    out.write(s.getBytes());%0A  %7D%0A%0A  public void writeUTF(String s) throws IOException %7B%0A    out.write(s.getBytes(%22UTF-8%22));%0A  %7D%0A%7D%0A

Add a minimal implementation of DataOutputStream