org.apache.excalibur.xml.sax
Class ContentHandlerAdapter

java.lang.Object
  |
  +--org.apache.excalibur.xml.sax.ContentHandlerAdapter
All Implemented Interfaces:
DocumentHandler

public class ContentHandlerAdapter
extends Object
implements DocumentHandler

This class is an utility class adapting a SAX version 2.0 ContentHandler to receive SAX version 1.0 events.

Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:20 $
Author:
Avalon Development Team

Constructor Summary
ContentHandlerAdapter(ContentHandler handler)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(String name)
           
 void ignorableWhitespace(char[] ch, int start, int length)
           
 void processingInstruction(String target, String data)
           
 void setDocumentLocator(Locator locator)
           
 void startDocument()
           
 void startElement(String name, AttributeList atts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHandlerAdapter

public ContentHandlerAdapter(ContentHandler handler)
Method Detail

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface DocumentHandler

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface DocumentHandler
SAXException

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface DocumentHandler
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface DocumentHandler
SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws SAXException
Specified by:
ignorableWhitespace in interface DocumentHandler
SAXException

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Specified by:
processingInstruction in interface DocumentHandler
SAXException

startElement

public void startElement(String name,
                         AttributeList atts)
                  throws SAXException
Specified by:
startElement in interface DocumentHandler
SAXException

endElement

public void endElement(String name)
                throws SAXException
Specified by:
endElement in interface DocumentHandler
SAXException


Copyright © 1997-2004 The Apache Software Foundation. All Rights Reserved.