Copy bytes from a large (over 2GB) InputStream to an OutputStream.
InputStream
OutputStream
This method buffers the input internally, so there is no need to use a BufferedInputStream.
BufferedInputStream
the number of bytes copied
the InputStream to read from
the OutputStream to write to
Copy chars from a large (over 2GB) Reader to a Writer.
Reader
Writer
This method buffers the input internally, so there is no need to use a BufferedReader.
BufferedReader
the number of characters copied
the Reader to read from
the Writer to write to