copyLarge

Copy bytes from a large (over 2GB) InputStream to an OutputStream.

This method buffers the input internally, so there is no need to use a BufferedInputStream.

Return

the number of bytes copied

Parameters

input

the InputStream to read from

output

the OutputStream to write to

open fun copyLarge(input: InputStream, output: OutputStream): Long

Copy chars from a large (over 2GB) Reader to a Writer.

This method buffers the input internally, so there is no need to use a BufferedReader.

Return

the number of characters copied

Parameters

input

the Reader to read from

output

the Writer to write to

open fun copyLarge(input: Reader, output: Writer): Long