Support DataOutputStream/DataInputStream