public abstract class SmooksContentHandler extends DefaultHandler2 implements SAXEventReplay
Constructor and Description |
---|
SmooksContentHandler(ExecutionContext executionContext,
SmooksContentHandler parentContentHandler) |
Modifier and Type | Method and Description |
---|---|
abstract void |
cleanup() |
void |
detachHandler() |
abstract void |
endElement(EndElementEvent endEvent) |
void |
endElement(String uri,
String localName,
String qName) |
ExecutionContext |
getExecutionContext() |
static SmooksContentHandler |
getHandler(ExecutionContext executionContext) |
NamespaceDeclarationStack |
getNamespaceDeclarationStack() |
SmooksContentHandler |
getNestedContentHandler() |
SmooksContentHandler |
getParentContentHandler() |
void |
replay(ContentHandler handler)
Replay the last SAX event onto the supplied SAX
ContentHandler instance. |
void |
replayStartElement() |
void |
resetNestedContentHandler() |
abstract void |
startElement(StartElementEvent startEvent) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public SmooksContentHandler(ExecutionContext executionContext, SmooksContentHandler parentContentHandler)
public NamespaceDeclarationStack getNamespaceDeclarationStack()
public void replayStartElement()
public final void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public abstract void startElement(StartElementEvent startEvent) throws SAXException
SAXException
public final void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public abstract void endElement(EndElementEvent endEvent) throws SAXException
SAXException
public void replay(ContentHandler handler) throws SmooksException
SAXEventReplay
ContentHandler
instance.replay
in interface SAXEventReplay
handler
- The handler on whic to replay the last event.SmooksException
- Error replaying last event.public static SmooksContentHandler getHandler(ExecutionContext executionContext)
public void detachHandler()
public ExecutionContext getExecutionContext()
public SmooksContentHandler getParentContentHandler()
public SmooksContentHandler getNestedContentHandler()
public void resetNestedContentHandler()
public abstract void cleanup()
Copyright © 2020. All rights reserved.