opendap/src/main/java/opendap/dap/DByte.java
public void externalize(DataOutputStream sink) throws IOException {
        // print three null bytes (padding)
        for (int i = 0; i < 3; i++) {
            sink.writeByte(0);
        }
        sink.writeByte(val);
    }
public void externalize(DataOutputStream sink) throws IOException {
        // print three null bytes (padding)
        for (int i = 0; i < 3; i++) {
            sink.writeByte(0);
        }
        sink.writeByte(val);
    }
Writes data to a <code>DataOutputStream</code>. This method is used
primarily by GUI clients which need to download OPeNDAP data, manipulate
it, and then re-save it as a binary file.

@param sink a <code>DataOutputStream</code> to write to.
@throws IOException thrown on any <code>OutputStream</code>
exception.