Code example for DataOutputStream

Methods: writeByte, writeShort