Code example for DataOutputStream

Methods: close, writeByte, writeShort