List of utility methods to do Reader Read Line
String[] | readLinesTrimmedNoCommmentFromBufferedReader(final BufferedReader in, final String commentString) read Lines Trimmed No Commment From Buffered Reader ArrayList<String> lineList = new ArrayList<String>(); String line; while (in.ready()) { line = in.readLine(); if (line == null) { continue; line = line.trim(); ... |
boolean | readLinesWithContinuation(BufferedReader rdr, StringBuilder sb, int maxSize) Reads line from a BuffereReader into a StringBuilder, interpreting backslash-newline as line-continuation, until either end-of-stream or maxSize chars read. while (true) { String s = rdr.readLine(); if (s == null) { return sb.length() != 0; if (s.endsWith("\\")) { sb.append(s, 0, s.length() - 1); continue; ... |