public class DebugOutput
extends java.lang.Object
Bibliothek simAuxLibrary , Klasse DebugOutput
Copyright by Klaus Hufschlag 2004,2005,2006
This file is part of the Generic Classifier Library. The Generic Classifier Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Generic Classifier Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the Generic Classifier Library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Modifier and Type | Method and Description |
---|---|
static java.io.Writer |
getWriter(java.lang.Object key)
Returns the console for the key object.
|
static boolean |
isOn()
Checks activation of standard console.
|
static boolean |
isOn(java.lang.Object key)
Checks, wheter the console for a key is activated.
|
static void |
print(java.lang.Object key,
java.lang.String string)
Output to the console assigned for the given key.
|
static void |
print(java.lang.String string)
Output on standard console.
|
static void |
println()
Output of a single linefeed to standard console.
|
static void |
println(java.lang.Object key)
Output of a single linefeed to console assigned to key.
|
static void |
println(java.lang.Object key,
java.lang.String string)
Output with linefeed to console assigned to key.
|
static void |
println(java.lang.String string)
Output of a string with linefeed to standard console.
|
static void |
setWriter(java.lang.Object key,
java.io.Writer out)
Define a console used for a key object.
|
static void |
setWriter(java.io.Writer out)
Setting standard channel for output des Standard-Ausgabekanals.
|
static void |
turnOff()
Deactivates standard console.
|
static void |
turnOff(java.lang.Object key)
Deactivates console for the given key.
|
static void |
turnOn()
Activates standard console.
|
static void |
turnOn(java.lang.Object key)
Activates console for the given key.
|
public static void setWriter(java.io.Writer out)
out
- Writer-Object as standard console.public static void setWriter(java.lang.Object key, java.io.Writer out)
key
- key objectout
- Writer-Object as consolepublic static java.io.Writer getWriter(java.lang.Object key)
key
- key objectpublic static void turnOn(java.lang.Object key)
key
- key objectpublic static void turnOff(java.lang.Object key)
key
- key objectpublic static boolean isOn(java.lang.Object key)
key
- key objectpublic static void turnOn()
public static void turnOff()
public static boolean isOn()
public static void print(java.lang.Object key, java.lang.String string)
key
- key objectstring
- output-stringpublic static void print(java.lang.String string)
string
- output-stringpublic static void println(java.lang.Object key, java.lang.String string)
key
- key objectstring
- auszugebender Stringpublic static void println(java.lang.Object key)
key
- key objectpublic static void println()
public static void println(java.lang.String string)
string
- auszugebender String