/** * Get continuation lines, if any. */ private String more(BufferedReader bin, String value) throws IOException { boolean moreCowBell = false; String line = value; StringBuilder buf = new StringBuilder(); do { moreCowBell = more(line); if (moreCowBell) { line = line.substring(0, line.length() - 1).trim(); } buf.append(line); if (moreCowBell) { buf.append('\n'); line = advance(bin); // Is this new line a potential key line? // It cannot both continue the prior // and also be a key line. int splitPos = getSplitPos(line); if (splitPos >= 0) { warnings.append("Possible trailing continuation on previous line. Found: ").append(line).append('\n'); } } } while (moreCowBell && line != null); String cowBell = buf.toString(); buf = null; line = null; return cowBell; }
String line = advance(bin); if (line == null) { break;