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(org.smooks.api.ExecutionContext executionContext, DocumentBuilder documentBuilder)SaxNgContentHandler(org.smooks.api.ExecutionContext executionContext, DocumentBuilder documentBuilder, SmooksContentHandler parentContentHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidclose()voidcomment(char[] ch, int start, int length)protected voiddoCharacters(char[] ch, int start, int length)voidendCDATA()voidendElement(EndElementEvent endEvent)voidendEntity(String name)protected intfindMaxNodeDepth(org.smooks.engine.delivery.sax.ng.ContentHandlerState contentHandlerState)voidignorableWhitespace(char[] ch, int start, int length)protected voidonChildElement(Element childElement)voidstartCDATA()voidstartDocument()voidstartDTD(String name, String publicId, String systemId)voidstartElement(StartElementEvent startEvent)voidstartEntity(String name)protected voidvisitAfter(org.smooks.api.delivery.ContentHandlerBinding<org.smooks.api.resource.visitor.sax.ng.AfterVisitor> afterVisitorBinding)protected voidvisitBefore(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(org.smooks.api.ExecutionContext executionContext, DocumentBuilder documentBuilder)
-
SaxNgContentHandler
public SaxNgContentHandler(org.smooks.api.ExecutionContext executionContext, DocumentBuilder documentBuilder, SmooksContentHandler parentContentHandler)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein classSmooksContentHandler
-
startDocument
public void startDocument()
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler
-
startElement
public void startElement(StartElementEvent startEvent)
- Specified by:
startElementin classSmooksContentHandler
-
endElement
public void endElement(EndElementEvent endEvent) throws SAXException
- Specified by:
endElementin 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(org.smooks.api.delivery.ContentHandlerBinding<org.smooks.api.resource.visitor.sax.ng.AfterVisitor> afterVisitorBinding)
-
characters
public void characters(char[] ch, int start, int length)- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
doCharacters
protected void doCharacters(char[] ch, int start, int length)
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length)- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classDefaultHandler
-
comment
public void comment(char[] ch, int start, int length)- Specified by:
commentin interfaceLexicalHandler- Overrides:
commentin classDefaultHandler2
-
startCDATA
public void startCDATA()
- Specified by:
startCDATAin interfaceLexicalHandler- Overrides:
startCDATAin classDefaultHandler2
-
endCDATA
public void endCDATA()
- Specified by:
endCDATAin interfaceLexicalHandler- Overrides:
endCDATAin classDefaultHandler2
-
startEntity
public void startEntity(String name)
- Specified by:
startEntityin interfaceLexicalHandler- Overrides:
startEntityin classDefaultHandler2
-
endEntity
public void endEntity(String name)
- Specified by:
endEntityin interfaceLexicalHandler- Overrides:
endEntityin classDefaultHandler2
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTDin interfaceLexicalHandler- Overrides:
startDTDin classDefaultHandler2- Throws:
SAXException
-
-