com.sun.tools.xjc
Class ConsoleErrorReporter

java.lang.Object
  extended by com.sun.tools.xjc.ErrorReceiver
      extended by 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.


Constructor Summary
ConsoleErrorReporter()
           
ConsoleErrorReporter(java.io.OutputStream out)
           
ConsoleErrorReporter(java.io.PrintStream out)
           
 
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 com.sun.tools.xjc.ErrorReceiver
debug, error, error, error, error, getLocationString, pollAbort, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleErrorReporter

public ConsoleErrorReporter(java.io.PrintStream out)

ConsoleErrorReporter

public ConsoleErrorReporter(java.io.OutputStream out)

ConsoleErrorReporter

public ConsoleErrorReporter()
Method Detail

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()