org.exolab.castor.xml.util

Class DocumentHandlerAdapter

public class DocumentHandlerAdapter extends Object implements 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.

Author: Keith Visco

UNKNOWN: $Revision: 1.1 $ $Date: 2004/09/10 18:15:10 $

Constructor Summary
DocumentHandlerAdapter(DocumentHandler handler)
Creates a new DocumentHandlerAdapter
Method Summary
voidcharacters(char[] chars, int start, int length)
voidendDocument()
voidendElement(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)
voidstartDocument()
voidstartElement(String uri, String localName, String qName, Attributes atts)
voidstartPrefixMapping(String prefix, String uri)

Constructor Detail

DocumentHandlerAdapter

public DocumentHandlerAdapter(DocumentHandler handler)
Creates a new DocumentHandlerAdapter

Parameters: handler the DocumentHandler to wrap (non-null).

Method Detail

characters

public void characters(char[] chars, int start, int length)

endDocument

public void endDocument()

endElement

public void endElement(String uri, String localName, String qName)

endPrefixMapping

public void endPrefixMapping(String prefix)

ignorableWhitespace

public void ignorableWhitespace(char[] chars, int start, int length)

processingInstruction

public void processingInstruction(String target, String data)

setDocumentLocator

public void setDocumentLocator(Locator locator)

skippedEntity

public void skippedEntity(String arg0)

startDocument

public void startDocument()

startElement

public void startElement(String uri, String localName, String qName, Attributes atts)

startPrefixMapping

public void startPrefixMapping(String prefix, String uri)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com