open static fun copyLarge(input: InputStream!, output: OutputStream!): Long
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
.
input
- InputStream!: the InputStream
to read from
output
- OutputStream!: the OutputStream
to write to
NullPointerException
- if the input or output is null
IOException
- if an I/O error occurs
Return
Long: the number of bytes copied
Since
Commons IO 1.3
open static fun copyLarge(input: Reader!, output: Writer!): 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
.
input
- Reader!: the Reader
to read from
output
- Writer!: the Writer
to write to
NullPointerException
- if the input or output is null
IOException
- if an I/O error occurs
Return
Long: the number of characters copied
Since
Commons IO 1.3