at.gv.egovernment.moa.util
Class MOADefaultHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--at.gv.egovernment.moa.util.MOADefaultHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class MOADefaultHandler
extends org.xml.sax.helpers.DefaultHandler

A DefaultHandler that uses a MOAEntityResolver and a MOAErrorHandler.

Version:
$Id$
Author:
Patrick Peck

Constructor Summary
MOADefaultHandler()
          Create a new MOADefaultHandler.
MOADefaultHandler(org.xml.sax.EntityResolver entityResolver, org.xml.sax.ErrorHandler errorHandler)
          Create a new MOADefaultHandler.
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
 org.xml.sax.InputSource resolveEntity(String publicId, String systemId)
           
 void warning(org.xml.sax.SAXParseException exception)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MOADefaultHandler

public MOADefaultHandler()
Create a new MOADefaultHandler.

MOADefaultHandler

public MOADefaultHandler(org.xml.sax.EntityResolver entityResolver,
                         org.xml.sax.ErrorHandler errorHandler)
Create a new MOADefaultHandler.
Parameters:
entityResolver - The EntityResolver to use for resolving external entities.
errorHandler - The ErrorHandler to use for reporting parsing errors.
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(String publicId,
                                             String systemId)
                                      throws org.xml.sax.SAXException
Overrides:
resolveEntity in class org.xml.sax.helpers.DefaultHandler
See Also:
EntityResolver.resolveEntity(java.lang.String, java.lang.String)

warning

public void warning(org.xml.sax.SAXParseException exception)
             throws org.xml.sax.SAXException
Overrides:
warning in class org.xml.sax.helpers.DefaultHandler
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)

error

public void error(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException
Overrides:
error in class org.xml.sax.helpers.DefaultHandler
See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
                throws org.xml.sax.SAXException
Overrides:
fatalError in class org.xml.sax.helpers.DefaultHandler
See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException)