Example usage for com.google.gwt.corp.compatibility ConsolePrintStream ConsolePrintStream

List of usage examples for com.google.gwt.corp.compatibility ConsolePrintStream ConsolePrintStream

Introduction

In this page you can find the example usage for com.google.gwt.corp.compatibility ConsolePrintStream ConsolePrintStream.

Prototype

public ConsolePrintStream() 

Source Link

Usage

From source file:com.googlecode.gwtquake.client.CompatibilityImpl.java

License:Open Source License

public CompatibilityImpl() {
    ConsolePrintStream cps;/*from  w  w  w  .  j  a  v a2s  .c  o  m*/
    cps = new ConsolePrintStream();
    System.setOut(cps);
    System.setErr(cps);

    System.out.println("Test for System.out.println()");
    new Throwable("Exception test").printStackTrace();
    System.out.println("Did the exception test appear above?");

}