Exemple #1
0
 public void endDocument() throws SAXException {
   // System.out.println(getClass().getName()+".endDocument enter" );
   if (stack != null && !stack.empty()) {
     stack.pop();
   }
   super.endDocument();
 }
Exemple #2
0
 public void setDocumentLocator(Locator locator) {
   if (stack != null && !stack.empty()) {
     StackContext stackEntry = stack.peek();
     SaxEventBufferBuilder bufferBuilder = stackEntry.bufferBuilder;
     if (bufferBuilder != null) {
       bufferBuilder.setDocumentLocator(locator);
     }
   }
   super.setDocumentLocator(locator);
 }