Java Utililty Methods Reader Copy

List of utility methods to do Reader Copy

Description

The list of methods to do Reader Copy are organized into topic(s).

Method

longcopyLarge(Reader input, Writer output, long limit)
copy Large
char[] buffer = new char[DEFAULT_BUFFER_SIZE];
long count = 0;
int n = 0;
long remaining = limit;
while (remaining > 0) {
    n = (remaining > DEFAULT_BUFFER_SIZE) ? input.read(buffer) : input.read(buffer, 0, (int) remaining);
    if (n == -1) {
        break;
...