public class StandardOutputStreams
extends java.lang.Object
stdout
and stderr
early.Modifier and Type | Field | Description |
---|---|---|
static java.io.PrintStream |
stderr |
|
static java.io.PrintStream |
stdout |
Constructor | Description |
---|---|
StandardOutputStreams() |
Modifier and Type | Method | Description |
---|---|---|
static void |
printError(java.lang.String msg) |
Prints an error messages to
stderr . |
static void |
printError(java.lang.String format,
java.lang.Object... args) |
Prints an error messages to
stderr . |
static void |
printError(java.lang.Throwable cause,
java.lang.String msg) |
Prints an error messages to
stderr . |
static void |
printError(java.lang.Throwable cause,
java.lang.String format,
java.lang.Object... args) |
Prints an error messages to
stderr . |
public static final java.io.PrintStream stdout
public static final java.io.PrintStream stderr
public static void printError(java.lang.String msg)
stderr
.msg
- the message to printpublic static void printError(java.lang.String format, java.lang.Object... args)
stderr
.format
- the format
args
- the arguments for the formatpublic static void printError(java.lang.Throwable cause, java.lang.String msg)
stderr
.cause
- the cause of the error, if not null
the Throwable.printStackTrace(PrintStream)
writes to stderr
msg
- the message to printpublic static void printError(java.lang.Throwable cause, java.lang.String format, java.lang.Object... args)
stderr
.cause
- the cause of the error, if not null
the Throwable.printStackTrace(PrintStream)
writes to stderr
format
- the format
args
- the arguments for the formatCopyright © 2018. All rights reserved.