List of utility methods to do Reader Copy
long | copyLarge(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; ... |