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