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)
Copy chars from a large (over 2GB) Reader to a Writer.
char[] buffer = new char[BUFFER_SIZE];
long count = 0;
int n = 0;
while (-1 != (n = input.read(buffer))) {
    output.write(buffer, 0, n);
    count += n;
return count;
...
longcopyLarge(Reader input, Writer output)
copy Large
return copyLarge(input, output, new char[DEFAULT_BUFFER_SIZE]);
longcopyLarge(Reader input, Writer output)
Copy chars from a large (over 2GB) Reader to a Writer.
char[] buffer = new char[DEFAULT_BUFFER_SIZE];
long count = 0;
int n = 0;
while (-1 != (n = input.read(buffer))) {
    output.write(buffer, 0, n);
    count += n;
return count;
...
longcopyLarge(Reader input, Writer output)
copy Large
char[] buffer = new char[4096];
long count = 0L;
int n = 0;
while (-1 != (n = input.read(buffer))) {
    output.write(buffer, 0, n);
    count += n;
return count;
...
longcopyLarge(Reader input, Writer output)
copy Large
char[] buffer = new char[DEFAULT_BUFFER_SIZE];
long count = 0;
int n = 0;
while (-1 != (n = input.read(buffer))) {
    output.write(buffer, 0, n);
    count += n;
return count;
...
longcopyLarge(Reader input, Writer output)
Copy chars from a large (over 2GB) Reader to a Writer.
char[] buffer = new char[DEFAULT_BUFFER_SIZE];
long count = 0;
int n = 0;
while (-1 != (n = input.read(buffer))) {
    output.write(buffer, 0, n);
    count += n;
return count;
...
longcopyLarge(Reader input, Writer output, char[] buffer)
Copy chars from a large (over 2GB) Reader to a Writer.
long count = 0;
int n = 0;
while (EOF != (n = input.read(buffer))) {
    output.write(buffer, 0, n);
    count += n;
return count;
longcopyLarge(Reader input, Writer output, char[] buffer)
copy Large
long count = 0;
int n = 0;
while (EOF != (n = input.read(buffer))) {
    output.write(buffer, 0, n);
    count += n;
return count;
longcopyLarge(Reader input, Writer output, char[] buffer)
Copy chars from a large (over 2GB) Reader to a Writer.
long count = 0;
int n = 0;
while (EOF != (n = input.read(buffer))) {
    output.write(buffer, 0, n);
    count += n;
return count;
longcopyLarge(Reader input, Writer output, final long inputOffset, final long length, char[] buffer)
Copy some or all chars from a large (over 2GB) InputStream to an OutputStream, optionally skipping input chars.
if (inputOffset > 0) {
    skipFully(input, inputOffset);
if (length == 0) {
    return 0;
int bytesToRead = buffer.length;
if (length > 0 && length < buffer.length) {
...