src/main/java/org/jboss/util/stream/Streams.java
/**
    * Copy all of the bytes from the input stream to the output stream.
    *
    * @param input   Stream to read bytes from.
    * @param output  Stream to write bytes to.
    * @return        The total number of bytes copied.
    *
    * @throws IOException  Failed to copy bytes.
    */
Copy all of the bytes from the input stream to the output stream.
@param input   Stream to read bytes from.
@param output  Stream to write bytes to.
@return        The total number of bytes copied.

@throws IOException  Failed to copy bytes.
Copy all of the bytes from the input stream to the output stream . @param input Stream to read bytes from . @param output Stream to write bytes to . @return The total number of bytes copied . @throws IOException Failed to copy bytes .
public static long copy(final InputStream input, 
                           final OutputStream output)
      throws IOException
   {
      return copy(input, output, DEFAULT_BUFFER_SIZE);
   }
public static long copy ( final InputStream input , final OutputStream output ) throws IOException { return copy ( input , output , DEFAULT_BUFFER_SIZE ) ; }
Copy all of the bytes from the input stream to the output stream.
Copy all of the bytes from the input stream to the output stream .