com.adactus.mpeg21.xml.schema
Class ErrorHandlerImpl
java.lang.Object
com.adactus.mpeg21.xml.schema.ErrorHandlerImpl
- All Implemented Interfaces:
- javolution.lang.Reusable, org.xml.sax.ErrorHandler
- Direct Known Subclasses:
- DocumentSource
public class ErrorHandlerImpl
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler, javolution.lang.Reusable
Easy-going implementation of error handler. This implementation simply has boolean indicators for if there were errors, warnings and/or fatal erros.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorHandlerImpl
public ErrorHandlerImpl(boolean strict)
error
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Specified by:
error
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
getStatus
public java.lang.String getStatus()
- Crate print-friendly status string.
- Returns:
- the current status summary
reset
public void reset()
- Specified by:
reset
in interface javolution.lang.Reusable
warning
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
wasError
public boolean wasError()
wasFatalError
public boolean wasFatalError()
wasWaring
public boolean wasWaring()