org.cyberneko.html

Class HTMLConfiguration.ErrorReporter

protected class HTMLConfiguration.ErrorReporter extends Object implements HTMLErrorReporter

Defines an error reporter for reporting HTML errors. There is no such thing as a fatal error in parsing HTML. I/O errors are fatal but should throw an 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 the
 
Components in the configuration can query the error reporter using this property identifier.

Note: All reported errors are within the domain "http://cyberneko.org/html".

Author: Andy Clark

Field Summary
protected ResourceBundlefErrorMessages
Error messages.
protected LocalefLastLocale
Last locale.
Method Summary
protected XMLParseExceptioncreateException(String key, Object[] args)
Creates parse exception.
StringformatMessage(String key, Object[] args)
Format message without reporting error.
protected StringformatSimpleMessage(String key, Object[] args)
Format simple message.
voidreportError(String key, Object[] args)
Reports an error.
voidreportWarning(String key, Object[] args)
Reports a warning.

Field Detail

fErrorMessages

protected ResourceBundle fErrorMessages
Error messages.

fLastLocale

protected Locale fLastLocale
Last locale.

Method Detail

createException

protected XMLParseException createException(String key, Object[] args)
Creates parse exception.

formatMessage

public String formatMessage(String key, Object[] args)
Format message without reporting error.

formatSimpleMessage

protected String formatSimpleMessage(String key, Object[] args)
Format simple message.

reportError

public void reportError(String key, Object[] args)
Reports an error.

reportWarning

public void reportWarning(String key, Object[] args)
Reports a warning.
(C) Copyright 2002-2005, Andy Clark. All rights reserved.