public class StandardOutputStreams extends Object
Modifier and Type | Field and Description |
---|---|
static PrintStream |
stderr |
static PrintStream |
stdout |
Constructor and Description |
---|
StandardOutputStreams() |
Modifier and Type | Method and 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 format
args
- 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 stderr
msg
- the message to printCopyright © 2019 JBoss by Red Hat. All rights reserved.