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: 9147 $ $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 TypeMethodDescriptionvoidcharacters(char[] chars, int start, int length) voidvoidendElement(String uri, String localName, String qName) voidendPrefixMapping(String prefix) voidignorableWhitespace(char[] chars, int start, int length) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidskippedEntity(String arg0) voidvoidstartElement(String uri, String localName, String qName, Attributes atts) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
charactersin interfaceContentHandler- Throws:
SAXException- See Also:
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException- See Also:
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException- See Also:
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException- See Also:
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException- See Also:
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException- See Also:
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler- See Also:
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException- See Also:
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException- See Also:
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException- See Also:
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException- See Also:
-