Code example for DataOutputStream

Methods: writeBool, writeByte, writeShort, writeSlot