|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.jackrabbit.commons.xml.ProxyContentHandler
public class ProxyContentHandler
A proxy content handler that passes all SAX events as-is to the proxied handler.
As a convenience this class inherits the DefaultHandler class
instead of just the ContentHandler interface. This makes it
possible to use this class as an adapter when using methods like
SAXParser.parse(String, DefaultHandler) that
expect a DefaultHandler instance instead of a ContentHandler.
| Field Summary | |
|---|---|
protected ContentHandler |
handler
The proxied content handler. |
| Constructor Summary | |
|---|---|
ProxyContentHandler(ContentHandler handler)
Creates a proxy for the given content handler. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Delegated to handler. |
void |
endDocument()
Delegated to handler. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Delegated to handler. |
void |
endPrefixMapping(String prefix)
Delegated to handler. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Delegated to handler. |
void |
processingInstruction(String target,
String data)
Delegated to handler. |
void |
setDocumentLocator(Locator locator)
Delegated to handler. |
void |
skippedEntity(String name)
Delegated to handler. |
void |
startDocument()
Delegated to handler. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Delegated to handler. |
void |
startPrefixMapping(String prefix,
String uri)
Delegated to handler. |
String |
toString()
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ContentHandler handler
| Constructor Detail |
|---|
public ProxyContentHandler(ContentHandler handler)
handler - content handler to be proxied| Method Detail |
|---|
public void characters(char[] ch,
int start,
int length)
throws SAXException
handler.
characters in interface ContentHandlercharacters in class DefaultHandlerch - passed throughstart - passed throughlength - passed through
SAXException - if an error occurs
public void endDocument()
throws SAXException
handler.
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - if an error occurs
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
handler.
endElement in interface ContentHandlerendElement in class DefaultHandlernamespaceURI - passed throughlocalName - passed throughqName - passed through
SAXException - if an error occurs
public void endPrefixMapping(String prefix)
throws SAXException
handler.
endPrefixMapping in interface ContentHandlerendPrefixMapping in class DefaultHandlerprefix - passed through
SAXException - if an error occurs
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
handler.
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerch - passed throughstart - passed throughlength - passed through
SAXException - if an error occurs
public void processingInstruction(String target,
String data)
throws SAXException
handler.
processingInstruction in interface ContentHandlerprocessingInstruction in class DefaultHandlertarget - passed throughdata - passed through
SAXException - if an error occurspublic void setDocumentLocator(Locator locator)
handler.
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerlocator - passed through
public void skippedEntity(String name)
throws SAXException
handler.
skippedEntity in interface ContentHandlerskippedEntity in class DefaultHandlername - passed through
SAXException - if an error occurs
public void startDocument()
throws SAXException
handler.
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException - if an error occurs
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
handler.
startElement in interface ContentHandlerstartElement in class DefaultHandlernamespaceURI - passed throughlocalName - passed throughqName - passed throughatts - passed through
SAXException - if an error occurs
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
handler.
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerprefix - passed throughuri - passed through
SAXException - if an error occurspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||