public static class XmlUtil.SaxErrorHandler extends Object implements ErrorHandler
Modifier and Type | Class and Description |
---|---|
static class |
XmlUtil.SaxErrorHandler.ErrorInfo |
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_STRING |
static String |
FATAL_ERROR_STRING |
static short |
SEVERITY_ERROR |
static short |
SEVERITY_FATAL_ERROR |
static short |
SEVERITY_WARNING |
static String |
WARNING_STRING |
Constructor and Description |
---|
SaxErrorHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(XmlUtil.SaxErrorHandler.ErrorInfo ei) |
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
static String |
formatErrorInfo(XmlUtil.SaxErrorHandler.ErrorInfo ei) |
static String |
formatErrorInfos(XmlUtil.SaxErrorHandler saxEH) |
List<XmlUtil.SaxErrorHandler.ErrorInfo> |
getErrors() |
String |
getFirstError() |
boolean |
hasErrors() |
void |
printErrorInfos(PrintStream out) |
void |
warning(SAXParseException exception) |
public static final String WARNING_STRING
public static final String ERROR_STRING
public static final String FATAL_ERROR_STRING
public static final short SEVERITY_WARNING
public static final short SEVERITY_ERROR
public static final short SEVERITY_FATAL_ERROR
public void printErrorInfos(PrintStream out)
public static String formatErrorInfos(XmlUtil.SaxErrorHandler saxEH)
public static String formatErrorInfo(XmlUtil.SaxErrorHandler.ErrorInfo ei)
public List<XmlUtil.SaxErrorHandler.ErrorInfo> getErrors()
public boolean hasErrors()
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException
protected void addError(XmlUtil.SaxErrorHandler.ErrorInfo ei)
public String getFirstError()
Copyright © 2019 Hitachi Vantara. All rights reserved.