Top Fields Constructors Methods
com.sun.xml.internal.stream

public Class StaxErrorReporter

extends XMLErrorReporter
Class Inheritance
Imports
javax.xml.stream.Location, .XMLInputFactory, .XMLReporter, .XMLStreamException, com.sun.org.apache.xerces.internal.impl.msg.XMLMessageFormatter, com.sun.org.apache.xerces.internal.util.MessageFormatter, com.sun.org.apache.xerces.internal.xni.XMLLocator, .XNIException, com.sun.org.apache.xerces.internal.impl.PropertyManager, .XMLErrorReporter

Author
neeraj

Field Summary

Modifier and TypeField and Description
protected XMLReporter
Inherited from com.sun.org.apache.xerces.internal.impl.XMLErrorReporter:
CONTINUE_AFTER_FATAL_ERRORERROR_HANDLERfContinueAfterFatalErrorfDefaultErrorHandlerfErrorHandlerfLocalefLocatorfMessageFormattersSEVERITY_ERRORSEVERITY_FATAL_ERRORSEVERITY_WARNING

Constructor Summary

AccessConstructor and Description
public
StaxErrorReporter(PropertyManager propertyManager)

Creates a new instance of StaxErrorReporter

public
StaxErrorReporter()

Creates a new instance of StaxErrorReporter If this constructor is used to create the object, one must invoke reset() on this object.

Method Summary

Modifier and TypeMethod and Description
pack-priv Location
public String
reportError(XMLLocator
The error location.
location
,
String
The error domain.
domain
,
String
The key of the error message.
key
,
Object[]
The replacement arguments for the error message, if needed.
arguments
,
short
The severity of the error.
severity
)

Overrides com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError.

Reports an error at a specific location.
public void
reset(PropertyManager propertyManager)

One must call reset before using any of the function.

Inherited from com.sun.org.apache.xerces.internal.impl.XMLErrorReporter:
getErrorHandlergetFeaturegetFeatureDefaultgetLocalegetMessageFormattergetPropertyDefaultgetRecognizedFeaturesgetRecognizedPropertiesgetSAXErrorHandlerputMessageFormatterremoveMessageFormatterreportErrorreportErrorreportErrorresetsetDocumentLocatorsetFeaturesetLocalesetProperty

Field Detail

fXMLReporterback to summary
protected XMLReporter fXMLReporter

Constructor Detail

StaxErrorReporterback to summary
public StaxErrorReporter(PropertyManager propertyManager)

Creates a new instance of StaxErrorReporter

StaxErrorReporterback to summary
public StaxErrorReporter()

Creates a new instance of StaxErrorReporter If this constructor is used to create the object, one must invoke reset() on this object.

Method Detail

convertToStaxLocationback to summary
pack-priv Location convertToStaxLocation(final XMLLocator location)
reportErrorback to summary
public String reportError(XMLLocator location, String domain, String key, Object[] arguments, short severity) throws XNIException

Overrides com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError.

Reports an error at a specific location.

Parameters
location:XMLLocator

The error location.

domain:String

The error domain.

key:String

The key of the error message.

arguments:Object[]

The replacement arguments for the error message, if needed.

severity:short

The severity of the error.

Returns:String

Doc from com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError.

The formatted error message.

See Also
SEVERITY_WARNING, SEVERITY_ERROR, SEVERITY_FATAL_ERROR
resetback to summary
public void reset(PropertyManager propertyManager)

One must call reset before using any of the function.