/** * 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); } } while (moreCowBell && line != null); return buf.toString(); }
LOGGER.warn("Empty key in [{}]: {}", sectionName, line); String value = more(bin, line.substring(splitPos + 1).trim()); add(sectionName, key, value);