public class ForwardingXMLDefaultHandler extends org.xml.sax.helpers.DefaultHandler implements XMLDefaultHandler
XMLDefaultHandler will forward all calls to its delegate.| Modifier and Type | Field and Description |
|---|---|
protected XMLDefaultHandler |
delegate
The delegate to which we'll forward all calls.
|
| Constructor and Description |
|---|
ForwardingXMLDefaultHandler(XMLDefaultHandler delegate)
Creates our forwarding handler given its delegate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] arg0,
int arg1,
int arg2) |
void |
comment(char[] arg0,
int arg1,
int arg2) |
protected XMLDefaultHandler |
delegate()
Returns the delegate instance that methods are forwarded to.
|
void |
endCDATA() |
void |
endDocument() |
void |
endDTD() |
void |
endElement(String arg0,
String arg1,
String arg2) |
void |
endEntity(String arg0) |
void |
endPrefixMapping(String arg0) |
boolean |
equals(Object arg0) |
void |
error(SAXParseException arg0) |
void |
fatalError(SAXParseException arg0) |
int |
hashCode() |
void |
ignorableWhitespace(char[] arg0,
int arg1,
int arg2) |
void |
notationDecl(String arg0,
String arg1,
String arg2) |
void |
prepare(XMLResource resource,
XMLHelper helper,
Map<?,?> options) |
void |
processingInstruction(String arg0,
String arg1) |
void |
reset() |
InputSource |
resolveEntity(String arg0,
String arg1) |
void |
setDocumentLocator(Locator arg0) |
void |
skippedEntity(String arg0) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String arg0,
String arg1,
String arg2) |
void |
startElement(String arg0,
String arg1,
String arg2,
Attributes arg3) |
void |
startEntity(String arg0) |
void |
startPrefixMapping(String arg0,
String arg1) |
String |
toString() |
void |
unparsedEntityDecl(String arg0,
String arg1,
String arg2,
String arg3) |
void |
warning(SAXParseException arg0) |
protected final XMLDefaultHandler delegate
public ForwardingXMLDefaultHandler(XMLDefaultHandler delegate)
delegate - The delegate instance to forward method calls to.protected XMLDefaultHandler delegate()
public void characters(char[] arg0,
int arg1,
int arg2)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String arg0, String arg1, String arg2) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endPrefixMapping(String arg0) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void error(SAXParseException arg0) throws SAXException
error in interface ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void fatalError(SAXParseException arg0) throws SAXException
fatalError in interface ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void notationDecl(String arg0, String arg1, String arg2) throws SAXException
notationDecl in interface DTDHandlernotationDecl in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void processingInstruction(String arg0, String arg1) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic InputSource resolveEntity(String arg0, String arg1) throws IOException, SAXException
resolveEntity in interface EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerIOExceptionSAXExceptionpublic void setDocumentLocator(Locator arg0)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerpublic void skippedEntity(String arg0) throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startPrefixMapping(String arg0, String arg1) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3) throws SAXException
unparsedEntityDecl in interface DTDHandlerunparsedEntityDecl in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void warning(SAXParseException arg0) throws SAXException
warning in interface ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void comment(char[] arg0,
int arg1,
int arg2)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void endEntity(String arg0) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void startDTD(String arg0, String arg1, String arg2) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String arg0) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void reset()
reset in interface XMLDefaultHandlerpublic void prepare(XMLResource resource, XMLHelper helper, Map<?,?> options)
prepare in interface XMLDefaultHandler
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.