|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.commons.Printer
public final class Printer
The interface to print information to the console.
| Method Summary | |
|---|---|
static void |
print(Object obj)
Writes the text representation of the given object to the PrintStream. |
static void |
printErrorln(Object obj)
Writes the text representation of the given object as an error to the PrintStream and adds a LF. |
static void |
println(Object obj)
Writes the text representation of the given object to the PrintStream and adds a LF. |
static void |
println(String line)
Writes the given text to the PrintStream and adds a LF. |
static void |
printReader(Reader r)
Prints every line of the given Reader to the PrintStream. |
static void |
setPrintStream(PrintStream newOut)
Sets the new PrintStream for the printer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void println(String line)
PrintStream and adds a LF.
line - the text to be printed to the PrintStream. null -values will be ignored.public static void println(Object obj)
PrintStream and adds a LF.
obj - the object, whose text representation should be printed to the PrintStream. null
-values will be ignored.public static void print(Object obj)
PrintStream.
obj - the object, whose text representation should be printed to the PrintStream. null
-values will be ignored.public static void printErrorln(Object obj)
PrintStream and adds a LF. If the
text representation of the object contains LFs, this will produce several different lines as output.
obj - the object, whose text representation should be printed to the PrintStream as an error.public static void setPrintStream(PrintStream newOut)
PrintStream for the printer. From now on, output will be printed to the given stream.
newOut - the new PrintStream to set, null-values will be ignored.public static void printReader(Reader r)
Reader to the PrintStream.
r - the Reader to read the lines from and print to the PrintStream, null-values
will be ignored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||