title: DataInputStream.read() vs DataInputStream.readFully()
body: <p>Im making a simple TCP/IP Socket app</p>
  
  <p>Whats the different between doing this:</p>
  
  <pre><code>DataInputStream in = new DataInputStream(clientSocket.getInputStream());
  
  byte[] buffer = new byte[100];
  in.readFully(buffer);
  </code></pre>
  
  <p>versus doing this:</p>
  
  <pre><code>DataInputStream in = new DataInputStream(clientSocket.getInputStream());
  
  byte[] buffer = new byte[100];
  in.read(buffer);
  </code></pre>
  
  <p>I had a look at the documentation, they have the same exact description. <a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html" rel="noreferrer"><code>readFully()</code></a> and <a href="http://docs.oracle.com/javase/7/docs/api/java/io/DataInputStream.html" rel="noreferrer"><code>read()</code></a>
  So can I assume its the same thing?</p>