Using BufferedWriter and DataOutputStream in java together
<p>How can I simply write big-endian typed data into an OutputStream and still use buffering? (I'm developing for android if it makes any difference)</p>

<p>I tried</p>

<pre><code>out = new BufferedWriter(new DataOutputStream(new OutputStreamWriter(sock.getOutputStream())));
</code></pre>

<p>but it looks like I'm in no luck, because this cannot be done. I'm new to Java.</p>
