copy
Copies the content of a InputStream into an OutputStream. Uses a default buffer size of 8024 bytes.
Return
the number of bytes copied
Parameters
input
the InputStream to copy
output
the target, may be null to simulate output to dev/null on Linux and NUL on Windows
Throws
if an error occurs
Copies the content of a InputStream into an OutputStream
Return
the number of bytes copied
Parameters
input
the InputStream to copy
output
the target, may be null to simulate output to dev/null on Linux and NUL on Windows
buffersize
the buffer size to use, must be bigger than 0
Throws
if an error occurs
if buffersize is smaller than or equal to 0