Skip to content

Instantly share code, notes, and snippets.

@akkerman
Created December 15, 2012 11:32
Show Gist options
  • Save akkerman/4293974 to your computer and use it in GitHub Desktop.
Save akkerman/4293974 to your computer and use it in GitHub Desktop.
copy reader to writer
private static void copy(BufferedReader reader, PrintWriter writer) {
String line;
while ((line = reader.readLine()) != null) {
writer.println(line);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment