Class DefaultContentHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.jackrabbit.commons.xml.DefaultContentHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
- Direct Known Subclasses:
ParsingContentHandler
,SerializingContentHandler
public class DefaultContentHandler extends org.xml.sax.helpers.DefaultHandler
Adapter class for exposing aContentHandler
instance asDefaultHandler
object.- Since:
- Jackrabbit JCR Commons 1.5
-
-
Constructor Summary
Constructors Constructor Description DefaultContentHandler(org.xml.sax.ContentHandler handler)
Creates aDefaultHandler
adapter for the given content handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
Delegated tohandler
.void
endDocument()
Delegated tohandler
.void
endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
Delegated tohandler
.void
endPrefixMapping(java.lang.String prefix)
Delegated tohandler
.void
ignorableWhitespace(char[] ch, int start, int length)
Delegated tohandler
.void
processingInstruction(java.lang.String target, java.lang.String data)
Delegated tohandler
.void
setDocumentLocator(org.xml.sax.Locator locator)
Delegated tohandler
.void
skippedEntity(java.lang.String name)
Delegated tohandler
.void
startDocument()
Delegated tohandler
.void
startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
Delegated tohandler
.void
startPrefixMapping(java.lang.String prefix, java.lang.String uri)
Delegated tohandler
.
-
-
-
Method Detail
-
characters
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
characters
in interfaceorg.xml.sax.ContentHandler
- Overrides:
characters
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
ch
- passed throughstart
- passed throughlength
- passed through- Throws:
org.xml.sax.SAXException
- if an error occurs
-
endDocument
public void endDocument() throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
endDocument
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endDocument
in classorg.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
- if an error occurs
-
endElement
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
endElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endElement
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
namespaceURI
- passed throughlocalName
- passed throughqName
- passed through- Throws:
org.xml.sax.SAXException
- if an error occurs
-
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
endPrefixMapping
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endPrefixMapping
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
prefix
- passed through- Throws:
org.xml.sax.SAXException
- if an error occurs
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
ignorableWhitespace
in interfaceorg.xml.sax.ContentHandler
- Overrides:
ignorableWhitespace
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
ch
- passed throughstart
- passed throughlength
- passed through- Throws:
org.xml.sax.SAXException
- if an error occurs
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
processingInstruction
in interfaceorg.xml.sax.ContentHandler
- Overrides:
processingInstruction
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
target
- passed throughdata
- passed through- Throws:
org.xml.sax.SAXException
- if an error occurs
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
Delegated tohandler
.- Specified by:
setDocumentLocator
in interfaceorg.xml.sax.ContentHandler
- Overrides:
setDocumentLocator
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
locator
- passed through
-
skippedEntity
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
skippedEntity
in interfaceorg.xml.sax.ContentHandler
- Overrides:
skippedEntity
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
name
- passed through- Throws:
org.xml.sax.SAXException
- if an error occurs
-
startDocument
public void startDocument() throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
startDocument
in interfaceorg.xml.sax.ContentHandler
- Overrides:
startDocument
in classorg.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
- if an error occurs
-
startElement
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
startElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
startElement
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
namespaceURI
- passed throughlocalName
- passed throughqName
- passed throughatts
- passed through- Throws:
org.xml.sax.SAXException
- if an error occurs
-
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
Delegated tohandler
.- Specified by:
startPrefixMapping
in interfaceorg.xml.sax.ContentHandler
- Overrides:
startPrefixMapping
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
prefix
- passed throughuri
- passed through- Throws:
org.xml.sax.SAXException
- if an error occurs
-
-