|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.xml.XMLErrorHandler
org.stanwood.media.xml.SimpleErrorHandler
public class SimpleErrorHandler
This class is used to handle parsing errors that occur when validating a xml file. It will usally display 5 lines either side of the error and give a messages with info about the problem that was found.
Constructor Summary | |
---|---|
SimpleErrorHandler(java.io.File xmlFile)
Used to construct the error handler |
Method Summary | |
---|---|
void |
error(org.xml.sax.SAXParseException e)
Used to print errors when they occur while validating the XML file |
void |
fatalError(org.xml.sax.SAXParseException e)
Used to print fatal errors when they occur while validating the XML file |
void |
warning(org.xml.sax.SAXParseException e)
Used to print warnings when they occur while validating the XML file |
Methods inherited from class org.stanwood.media.xml.XMLErrorHandler |
---|
hasErrors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleErrorHandler(java.io.File xmlFile)
xmlFile
- The file that is been parsedMethod Detail |
---|
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class XMLErrorHandler
e
- The exception that is been processed
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class XMLErrorHandler
e
- The exception that is been processed
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class XMLErrorHandler
e
- The exception that is been processed
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |