org.mmbase.util
Class XMLChecker.XMLCheckerHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--org.mmbase.util.XMLChecker.XMLCheckerHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
XMLChecker

public class XMLChecker.XMLCheckerHandler
extends org.xml.sax.helpers.DefaultHandler

Handler for processing errors and warnings during parsing of a xml document. Outputs the messages to a specified out stream.


Constructor Summary
XMLChecker.XMLCheckerHandler(java.io.PrintStream out)
          Create a handler.
 
Method Summary
 void error(org.xml.sax.SAXParseException e)
          Handling of an error in a xml document during parsing.
 void fatalError(org.xml.sax.SAXParseException e)
          Handling of a fatal error in a xml document during parsing.
 void report()
          Final action after parsing of a document.
 void warning(org.xml.sax.SAXParseException e)
          Handling of a warning in a xml document during parsing.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, 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

XMLChecker.XMLCheckerHandler

public XMLChecker.XMLCheckerHandler(java.io.PrintStream out)
Create a handler.
Parameters:
out - Stream that recieves the errors and warnings.
Method Detail

error

public void error(org.xml.sax.SAXParseException e)
Handling of an error in a xml document during parsing. Writes the error to the out stream.
Overrides:
error in class org.xml.sax.helpers.DefaultHandler
Parameters:
e - the exception (error) that was thrown during parsing.

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
Handling of a fatal error in a xml document during parsing. Writes the error to the out stream.
Overrides:
fatalError in class org.xml.sax.helpers.DefaultHandler
Parameters:
e - the exception (fatal error) that was thrown during parsing.

warning

public void warning(org.xml.sax.SAXParseException e)
Handling of a warning in a xml document during parsing. Writes the warning to the out stream.
Overrides:
warning in class org.xml.sax.helpers.DefaultHandler
Parameters:
e - the exception (warning) that was thrown during parsing.

report

public void report()
Final action after parsing of a document. Writes a report (number of errors, fatal errors, and warnings) to the out stream.


MMBase build 1.6.5.20030923