Package org.exolab.castor.xml.util
Class DocumentHandlerAdapter
java.lang.Object
org.exolab.castor.xml.util.DocumentHandlerAdapter
- All Implemented Interfaces:
ContentHandler
A ContentHandler implementation that wraps a DocumentHandler. This ContentHandler was written for
the Marshaller and expects that QNames are non-null in calls to startElement and endElement
methods as well as inside the Attributes list.
- Version:
- $Revision$ $Date: 2004-09-10 12:15:10 -0600 (Fri, 10 Sep 2004) $
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentHandlerAdapter
(DocumentHandler handler) Creates a new DocumentHandlerAdapter -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] chars, int start, int length) void
void
endElement
(String uri, String localName, String qName) void
endPrefixMapping
(String prefix) void
ignorableWhitespace
(char[] chars, int start, int length) void
processingInstruction
(String target, String data) void
setDocumentLocator
(Locator locator) void
skippedEntity
(String arg0) void
void
startElement
(String uri, String localName, String qName, Attributes atts) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DocumentHandlerAdapter
Creates a new DocumentHandlerAdapter- Parameters:
handler
- the DocumentHandler to wrap (non-null).
-
-
Method Details
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- See Also:
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-