org.stanwood.media.xml
Class XMLErrorHandler
java.lang.Object
org.stanwood.media.xml.XMLErrorHandler
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
- Direct Known Subclasses:
- SimpleErrorHandler
public class XMLErrorHandler
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler
A XML error handler that output the errors to the log
Method Summary |
void |
error(org.xml.sax.SAXParseException e)
|
void |
fatalError(org.xml.sax.SAXParseException e)
|
boolean |
hasErrors()
Used to find out if errors were found. |
void |
warning(org.xml.sax.SAXParseException e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLErrorHandler
public XMLErrorHandler()
warning
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
-
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
error
public void error(org.xml.sax.SAXParseException e)
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 e)
throws org.xml.sax.SAXException
-
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
- Throws:
org.xml.sax.SAXException
hasErrors
public boolean hasErrors()
- Used to find out if errors were found.
- Returns:
- True if errors were found, otherwise false