Class SaxNgContentHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.xml.sax.ext.DefaultHandler2
-
- org.smooks.engine.delivery.SmooksContentHandler
-
- org.smooks.engine.delivery.sax.ng.SaxNgContentHandler
-
- All Implemented Interfaces:
SAXEventReplay
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,DeclHandler
,EntityResolver2
,LexicalHandler
public class SaxNgContentHandler extends SmooksContentHandler
-
-
Constructor Summary
Constructors Constructor Description SaxNgContentHandler(ExecutionContext executionContext, DocumentBuilder documentBuilder)
SaxNgContentHandler(ExecutionContext executionContext, DocumentBuilder documentBuilder, SmooksContentHandler parentContentHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
close()
void
comment(char[] ch, int start, int length)
protected void
doCharacters(char[] ch, int start, int length)
void
endCDATA()
void
endElement(EndElementEvent endEvent)
void
endEntity(String name)
protected int
findMaxNodeDepth(org.smooks.engine.delivery.sax.ng.ContentHandlerState contentHandlerState)
void
ignorableWhitespace(char[] ch, int start, int length)
protected void
onChildElement(Element childElement)
void
startCDATA()
void
startDocument()
void
startDTD(String name, String publicId, String systemId)
void
startElement(StartElementEvent startEvent)
void
startEntity(String name)
protected void
visitAfter(ContentHandlerBinding<AfterVisitor> afterVisitorBinding)
protected void
visitBefore(Element element, org.smooks.engine.delivery.sax.ng.SaxNgVisitorBindings saxNgVisitorBindings)
-
Methods inherited from class org.smooks.engine.delivery.SmooksContentHandler
detachHandler, endElement, getExecutionContext, getHandler, getNamespaceDeclarationStack, getNestedContentHandler, getParentContentHandler, replay, replayStartElement, resetNestedContentHandler, startElement
-
Methods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, elementDecl, endDTD, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
SaxNgContentHandler
public SaxNgContentHandler(ExecutionContext executionContext, DocumentBuilder documentBuilder)
-
SaxNgContentHandler
public SaxNgContentHandler(ExecutionContext executionContext, DocumentBuilder documentBuilder, SmooksContentHandler parentContentHandler)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in classSmooksContentHandler
-
startDocument
public void startDocument()
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
-
startElement
public void startElement(StartElementEvent startEvent)
- Specified by:
startElement
in classSmooksContentHandler
-
endElement
public void endElement(EndElementEvent endEvent) throws SAXException
- Specified by:
endElement
in classSmooksContentHandler
- Throws:
SAXException
-
findMaxNodeDepth
protected int findMaxNodeDepth(org.smooks.engine.delivery.sax.ng.ContentHandlerState contentHandlerState)
-
visitBefore
protected void visitBefore(Element element, org.smooks.engine.delivery.sax.ng.SaxNgVisitorBindings saxNgVisitorBindings)
-
onChildElement
protected void onChildElement(Element childElement)
-
visitAfter
protected void visitAfter(ContentHandlerBinding<AfterVisitor> afterVisitorBinding)
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
doCharacters
protected void doCharacters(char[] ch, int start, int length)
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length)
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classDefaultHandler
-
comment
public void comment(char[] ch, int start, int length)
- Specified by:
comment
in interfaceLexicalHandler
- Overrides:
comment
in classDefaultHandler2
-
startCDATA
public void startCDATA()
- Specified by:
startCDATA
in interfaceLexicalHandler
- Overrides:
startCDATA
in classDefaultHandler2
-
endCDATA
public void endCDATA()
- Specified by:
endCDATA
in interfaceLexicalHandler
- Overrides:
endCDATA
in classDefaultHandler2
-
startEntity
public void startEntity(String name)
- Specified by:
startEntity
in interfaceLexicalHandler
- Overrides:
startEntity
in classDefaultHandler2
-
endEntity
public void endEntity(String name)
- Specified by:
endEntity
in interfaceLexicalHandler
- Overrides:
endEntity
in classDefaultHandler2
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTD
in interfaceLexicalHandler
- Overrides:
startDTD
in classDefaultHandler2
- Throws:
SAXException
-
-