title: Unknown buffer size to be read from a DataInputStream in java
body: <p>I have the following statement:</p>
  
  <p><code>DataInputStream is = new DataInputStream(process.getInputStream());</code></p>
  
  <p>I would like to print the contents of this input stream but I dont know the size of this stream. How should I read this stream and print it?</p>