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

copyLarge

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.

Parameters

input - InputStream!: the InputStream to read from

output - 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

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.

Parameters

input - Reader!: the Reader to read from

output - 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