protected class HTMLConfiguration.ErrorReporter extends java.lang.Object implements HTMLErrorReporter
IOException
directly instead of reporting an error.
When used in a configuration, the error reporter instance should be set as a property with the following property identifier:
"http://cyberneko.org/html/internal/error-reporter" in theComponents in the configuration can query the error reporter using this property identifier.
Note: All reported errors are within the domain "http://cyberneko.org/html".
Modifier and Type | Field and Description |
---|---|
protected java.util.ResourceBundle |
fErrorMessages
Error messages.
|
protected java.util.Locale |
fLastLocale
Last locale.
|
Modifier | Constructor and Description |
---|---|
protected |
HTMLConfiguration.ErrorReporter() |
Modifier and Type | Method and Description |
---|---|
protected XMLParseException |
createException(java.lang.String key,
java.lang.Object[] args)
Creates parse exception.
|
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Format message without reporting error.
|
protected java.lang.String |
formatSimpleMessage(java.lang.String key,
java.lang.Object[] args)
Format simple message.
|
void |
reportError(java.lang.String key,
java.lang.Object[] args)
Reports an error.
|
void |
reportWarning(java.lang.String key,
java.lang.Object[] args)
Reports a warning.
|
protected java.util.Locale fLastLocale
protected java.util.ResourceBundle fErrorMessages
public java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args)
formatMessage
in interface HTMLErrorReporter
public void reportWarning(java.lang.String key, java.lang.Object[] args) throws XMLParseException
reportWarning
in interface HTMLErrorReporter
XMLParseException
public void reportError(java.lang.String key, java.lang.Object[] args) throws XMLParseException
reportError
in interface HTMLErrorReporter
XMLParseException
protected XMLParseException createException(java.lang.String key, java.lang.Object[] args)
protected java.lang.String formatSimpleMessage(java.lang.String key, java.lang.Object[] args)
(C) Copyright 2002-2014, Andy Clark, Marc Guillemot. All rights reserved.