IOUtils.copy

Copy Stream input to Stream for byteCount bytes or until EOF or exception.

@param input the stream to read from @param output the stream to write to @param byteCount the number of bytes to copy @throws IOException if unable to copy the streams

  1. void copy(InputStream input, OutputStream output)
  2. void copy(InputStream input, OutputStream output, long byteCount)
    class IOUtils

Meta