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 documentConstructor 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, toString
public 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.ContentHandler
endDocument
in class ContentHandlerDecorator
org.xml.sax.SAXException
public void reallyEndDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public boolean getEndDocumentWasCalled()
Copyright © 2010 - 2020 Adobe. All Rights Reserved