|
|||||||||||||||||||
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
Console.java | - | 0% | 0% | 0% |
|
1 |
/* |
|
2 |
* JBind |
|
3 |
* |
|
4 |
* Copyright (c) by Stefan Wachter. All rights reserved. |
|
5 |
* |
|
6 |
* Usage, modification, and redistribution is subject to license terms that are |
|
7 |
* available at 'http://www.jbind.org'. The JBind license is like the |
|
8 |
* 'Apache Software License V 1.1'. |
|
9 |
*/ |
|
10 |
package org.jbind.base; |
|
11 |
|
|
12 |
import java.io.PrintWriter; |
|
13 |
|
|
14 |
public class Console { |
|
15 |
|
|
16 |
private static PrintWriter out = new PrintWriter(System.out, true); |
|
17 |
private static PrintWriter err = new PrintWriter(System.out, true); |
|
18 |
|
|
19 | 0 |
public static synchronized void out(Object anObject) { |
20 | 0 |
out.println(anObject); |
21 |
} |
|
22 | 0 |
public static synchronized void err(Object anObject) { |
23 | 0 |
err.println(anObject); |
24 |
} |
|
25 |
|
|
26 | 0 |
private Console() {} |
27 |
|
|
28 |
} |
|
29 |
|
|