Package com.sun.tools.xjc
Class ConsoleErrorReporter
- java.lang.Object
-
- com.sun.tools.xjc.ErrorReceiver
-
- com.sun.tools.xjc.ConsoleErrorReporter
-
- All Implemented Interfaces:
ErrorListener,com.sun.xml.bind.api.ErrorListener,ErrorHandler
public class ConsoleErrorReporter extends ErrorReceiver
ErrorReceiverthat prints to aPrintStream.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description ConsoleErrorReporter()ConsoleErrorReporter(OutputStream out)ConsoleErrorReporter(PrintStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException e)voidfatalError(SAXParseException e)booleanhadError()voidinfo(SAXParseException e)Reports verbose messages to users.voidwarning(SAXParseException e)-
Methods inherited from class com.sun.tools.xjc.ErrorReceiver
debug, error, error, error, error, getLocationString, pollAbort, warning
-
-
-
-
Constructor Detail
-
ConsoleErrorReporter
public ConsoleErrorReporter(PrintStream out)
-
ConsoleErrorReporter
public ConsoleErrorReporter(OutputStream out)
-
ConsoleErrorReporter
public ConsoleErrorReporter()
-
-
Method Detail
-
warning
public void warning(SAXParseException e)
- Specified by:
warningin interfaceErrorHandler- Specified by:
warningin interfaceErrorListener- Specified by:
warningin interfacecom.sun.xml.bind.api.ErrorListener- Specified by:
warningin classErrorReceiver
-
error
public void error(SAXParseException e)
- Specified by:
errorin interfaceErrorHandler- Specified by:
errorin interfaceErrorListener- Specified by:
errorin interfacecom.sun.xml.bind.api.ErrorListener- Specified by:
errorin classErrorReceiver
-
fatalError
public void fatalError(SAXParseException e)
- Specified by:
fatalErrorin interfaceErrorHandler- Specified by:
fatalErrorin interfaceErrorListener- Specified by:
fatalErrorin interfacecom.sun.xml.bind.api.ErrorListener- Specified by:
fatalErrorin classErrorReceiver
-
info
public void info(SAXParseException e)
Description copied from class:ErrorReceiverReports verbose messages to users. This method can be used to report additional non-essential messages. The implementation usually discards them unless some specific debug option is turned on.- Specified by:
infoin interfaceErrorListener- Specified by:
infoin interfacecom.sun.xml.bind.api.ErrorListener- Specified by:
infoin classErrorReceiver
-
hadError
public boolean hadError()
-
-