ly.img.android.pesdk.backend.exif / IOUtils / copyLarge

copyLarge

static fun copyLarge(input: java.io.InputStream, output: java.io.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.

Parameters

input - java.io.InputStream: the InputStream to read from

output - java.io.OutputStream: the OutputStream to write to

Exceptions

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

static fun copyLarge(input: java.io.Reader, output: java.io.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.

Parameters

input - java.io.Reader: the Reader to read from

output - java.io.Writer: the Writer to write to

Exceptions

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