title: DataOutputStream to Array
body: <p>Is there any way to write DataOutputStream content to an <code>Array</code> or a <code>String</code> regardless which type of data it contains?</p>
  
  <pre><code>DataOutputStream output = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(String dataPath)));
  </code></pre>
  
  <p>Thanks</p>