/** * The end of the document. * @param augs Additional information that may include infoset augmentations * * @throws XNIException Thrown by handler to signal an error. */ public void endDocument (Augmentations augs) throws XNIException { if (!fDeferNodeExpansion) { // REVISIT: when DOM Level 3 is REC rely on Document.support // instead of specific class // set the actual encoding and set DOM error checking back on if (fDocumentImpl != null) { if (fLocator != null) { fDocumentImpl.setInputEncoding (fLocator.getEncoding()); } fDocumentImpl.setStrictErrorChecking (true); } fCurrentNode = null; } else { // set the actual encoding if (fLocator != null) { fDeferredDocumentImpl.setInputEncoding (fLocator.getEncoding()); } fCurrentNodeIndex = -1; } } // endDocument()
if (nodeName.equals (name)) { fDeferredEntityDecl = node; fDeferredDocumentImpl.setInputEncoding (node, encoding); break;
fDeferredDocumentImpl.setInputEncoding (encoding);