com.sun.tools.xjc
Class ConsoleErrorReporter
java.lang.Object
com.sun.tools.xjc.ErrorReceiver
com.sun.tools.xjc.ConsoleErrorReporter
- All Implemented Interfaces:
- com.sun.xml.bind.api.ErrorListener, org.xml.sax.ErrorHandler
public class ConsoleErrorReporter
- extends ErrorReceiver
ErrorReceiver
that prints to a PrintStream
.
Method Summary |
void |
error(org.xml.sax.SAXParseException e)
|
void |
fatalError(org.xml.sax.SAXParseException e)
|
boolean |
hadError()
|
void |
info(org.xml.sax.SAXParseException e)
Reports verbose messages to users. |
void |
warning(org.xml.sax.SAXParseException e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleErrorReporter
public ConsoleErrorReporter(java.io.PrintStream out)
ConsoleErrorReporter
public ConsoleErrorReporter(java.io.OutputStream out)
ConsoleErrorReporter
public ConsoleErrorReporter()
warning
public void warning(org.xml.sax.SAXParseException e)
- Specified by:
warning
in interface com.sun.xml.bind.api.ErrorListener
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
- Specified by:
warning
in class ErrorReceiver
error
public void error(org.xml.sax.SAXParseException e)
- Specified by:
error
in interface com.sun.xml.bind.api.ErrorListener
- Specified by:
error
in interface org.xml.sax.ErrorHandler
- Specified by:
error
in class ErrorReceiver
fatalError
public void fatalError(org.xml.sax.SAXParseException e)
- Specified by:
fatalError
in interface com.sun.xml.bind.api.ErrorListener
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
- Specified by:
fatalError
in class ErrorReceiver
info
public void info(org.xml.sax.SAXParseException e)
- Description copied from class:
ErrorReceiver
- Reports 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:
info
in interface com.sun.xml.bind.api.ErrorListener
- Specified by:
info
in class ErrorReceiver
hadError
public boolean hadError()