List of utility methods to do BufferedWriter Write
void | writeText(BufferedWriter bw, String text, String prefix) write text, make every line starts with prefix int len = text.length(); int current = 0; int last = 0; while (current < len) { char c = text.charAt(current); if (c == '\n' || c == '\r') { if (last != current) bw.write(prefix + text.substring(last, current)); ... |