org.apache.commons.latka.util.xml
Class DelegateHandlerImpl

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.apache.commons.latka.util.xml.BasicDelegateHandler
          extended byorg.apache.commons.latka.util.xml.DelegateHandlerImpl
All Implemented Interfaces:
org.xml.sax.ContentHandler, DelegateHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Direct Known Subclasses:
LatkaHandler

public abstract class DelegateHandlerImpl
extends BasicDelegateHandler

A BasicDelegateHandler with convenient constructors. Constructors are a good way to insure that the init method is called. This is the best base class for most delegate handlers. BasicDelegateHandler is a good base class for delegate handlers produced by factories and/or reflection.


Constructor Summary
DelegateHandlerImpl(org.xml.sax.XMLReader reader)
          Create a DelegateHandler that releases to the current ContentHandler of the specified XMLReader
DelegateHandlerImpl(org.xml.sax.XMLReader reader, org.xml.sax.ContentHandler handler)
          Create a DelegateHandler that releases to a specific ContentHandler
 
Methods inherited from class org.apache.commons.latka.util.xml.BasicDelegateHandler
delegate, release
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Constructor Detail

DelegateHandlerImpl

public DelegateHandlerImpl(org.xml.sax.XMLReader reader)
Create a DelegateHandler that releases to the current ContentHandler of the specified XMLReader

Parameters:
reader - XMLReader that will do the parsing

DelegateHandlerImpl

public DelegateHandlerImpl(org.xml.sax.XMLReader reader,
                           org.xml.sax.ContentHandler handler)
Create a DelegateHandler that releases to a specific ContentHandler

Parameters:
reader - XMLReader that will do the parsing
handler - Handler that will resume parsing once release has been called


Copyright © 2001 Apache Software Foundation. Documenation generated September 27 2004.