public void endDocument() throws SAXException { // System.out.println(getClass().getName()+".endDocument enter" ); if (stack != null && !stack.empty()) { stack.pop(); } super.endDocument(); }
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); }