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(org.xml.sax.ContentHandler handler)
Creates a decorator for the given SAX event handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument() |
boolean |
getEndDocumentWasCalled() |
void |
reallyEndDocument() |
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toStringpublic EndDocumentShieldingContentHandler(org.xml.sax.ContentHandler handler)
handler - SAX event handler to be decoratedpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class ContentHandlerDecoratororg.xml.sax.SAXExceptionpublic void reallyEndDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic boolean getEndDocumentWasCalled()
Copyright © 2010 - 2023 Adobe. All Rights Reserved