Android 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

voidcopyContents(Reader in, Writer out)
Just copies all characters from in to out.
char[] buf = new char[BUFFER_SIZE];
int bytesRead = 0;
while ((bytesRead = in.read(buf)) > 0) {
    out.write(buf, 0, bytesRead);
out.flush();