private static class XmlUtil2.Validator extends Object implements ErrorHandler, EntityResolver
Modifier and Type | Field and Description |
---|---|
private URL |
dtdFile |
private String |
parsedFile |
Modifier | Constructor and Description |
---|---|
private |
XmlUtil2.Validator(String parsedFile,
URL dtdFile)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException exception)
Errors thrown with a detailed error message.
|
void |
fatalError(SAXParseException exception)
Fatal errors thrown with a detailed error message.
|
InputSource |
resolveEntity(String publicId,
String systemId)
This method is called when the parser wants a reference to the
DTD file.
|
void |
warning(SAXParseException exception)
Ignore warnings
|
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException