Code example for DataOutput

Methods: writeByte, writeShort