code: public static int copyData(InputStream in, OutputStream out) throws IOException {
          return copyData(in, out, -1, DEFAULT_BUFFER_SIZE);
      }
docs: Copies all available data from {@code in} to {@code out}.
  <p>
  Allocates a temporary memory buffer of {@link #DEFAULT_BUFFER_SIZE} bytes for this.
  </p>
  
  @param in
  input stream to copy data from.
  @param out
  output stream to copy data to.
  
  @return The number of bytes actually copied.
  
  @throws IOException
  if one is thrown by either {@code in} or {@code out}.