public class StandardOutputStreams extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static PrintStream |
stderr |
|
static PrintStream |
stdout |
| Constructor | Description |
|---|---|
StandardOutputStreams() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
printError(String msg) |
Prints an error messages to
stderr. |
static void |
printError(String format,
Object... args) |
Prints an error messages to
stderr. |
static void |
printError(Throwable cause,
String msg) |
Prints an error messages to
stderr. |
static void |
printError(Throwable cause,
String format,
Object... args) |
Prints an error messages to
stderr. |
public static final PrintStream stdout
public static final PrintStream stderr
public static void printError(String msg)
stderr.msg - the message to printpublic static void printError(String format, Object... args)
stderr.format - the formatargs - the arguments for the formatpublic static void printError(Throwable cause, String msg)
stderr.cause - the cause of the error, if not null the Throwable.printStackTrace(PrintStream)
writes to stderrmsg - the message to printCopyright © 2020 JBoss by Red Hat. All rights reserved.