List of utility methods to do Reader Copy
void | copyContents(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(); |