public class EndDocumentShieldingContentHandler extends ContentHandlerDecorator
ContentHandler which will ignore normal
SAX calls to endDocument(), and only fire them later.
This is typically used to ensure that we can output the metadata
before ending the document| Constructor and Description |
|---|
EndDocumentShieldingContentHandler(ContentHandler handler)
Creates a decorator for the given SAX event handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument() |
boolean |
isEndDocumentWasCalled() |
void |
reallyEndDocument() |
characters, endElement, endPrefixMapping, handleException, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toStringerror, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warningpublic EndDocumentShieldingContentHandler(ContentHandler handler)
handler - SAX event handler to be decoratedpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class ContentHandlerDecoratorSAXExceptionpublic void reallyEndDocument()
throws SAXException
SAXExceptionpublic boolean isEndDocumentWasCalled()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.