public class SimpleErrorHandler
extends org.xml.sax.helpers.DefaultHandler
implements org.xml.sax.ext.LexicalHandler
Modifier and Type | Method and Description |
---|---|
void |
comment(char[] ch,
int start,
int length)
DESCRIPTION
|
void |
endCDATA()
DESCRIPTION
|
void |
endDTD()
DESCRIPTION
|
void |
endEntity(java.lang.String name)
DESCRIPTION
|
void |
error(org.xml.sax.SAXParseException exc)
DESCRIPTION
|
void |
fatalError(org.xml.sax.SAXParseException exc)
DESCRIPTION
|
boolean |
hasErrors()
Determines whether the parser found any validation errors.
|
boolean |
hasWarnings()
Determines whether the parser found any validation warnings.
|
void |
startCDATA()
DESCRIPTION
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
DESCRIPTION
|
void |
startEntity(java.lang.String name)
DESCRIPTION
|
void |
warning(org.xml.sax.SAXParseException exc)
DESCRIPTION
|
public void error(org.xml.sax.SAXParseException exc)
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
exc
- DESCRIPTIONpublic boolean hasErrors()
public boolean hasWarnings()
public void fatalError(org.xml.sax.SAXParseException exc)
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
exc
- DESCRIPTIONpublic void warning(org.xml.sax.SAXParseException exc)
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
exc
- DESCRIPTIONpublic void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
startDTD
in interface org.xml.sax.ext.LexicalHandler
name
- DESCRIPTIONpublicId
- DESCRIPTIONsystemId
- DESCRIPTIONorg.xml.sax.SAXException
- DESCRIPTIONpublic void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
- DESCRIPTIONpublic void startEntity(java.lang.String name) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
name
- DESCRIPTIONorg.xml.sax.SAXException
- DESCRIPTIONpublic void endEntity(java.lang.String name) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
name
- DESCRIPTIONorg.xml.sax.SAXException
- DESCRIPTIONpublic void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
- DESCRIPTIONpublic void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
- DESCRIPTIONpublic void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
ch
- DESCRIPTIONstart
- DESCRIPTIONlength
- DESCRIPTIONorg.xml.sax.SAXException
- DESCRIPTION