@Override public void cleanup() throws IOException { if (currentSection != null) { listener.onSectionEnd(currentSection); } flushBuffer(); }
@Override public void onSection(String section, String text) throws IOException { if (currentSection != null) { listener.onSectionEnd(currentSection); } flushBuffer(); currentSection = section; listener.onSection(section, text); skipToNewline = true; }