Ejemplo n.º 1
0
 @Override
 public void cleanup() throws IOException {
   if (currentSection != null) {
     listener.onSectionEnd(currentSection);
   }
   flushBuffer();
 }
Ejemplo n.º 2
0
 @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;
 }