Package | Description |
---|---|
java.io |
Input/Output support
|
java.lang |
Core Java classes
|
java.util |
Utilities
|
Modifier and Type | Method and Description |
---|---|
PrintStream |
PrintStream.append(char c) |
PrintStream |
PrintStream.append(CharSequence cs) |
PrintStream |
PrintStream.append(CharSequence cs,
int start,
int end) |
PrintStream |
PrintStream.format(Locale locale,
String format,
Object... args) |
PrintStream |
PrintStream.format(String format,
Object... args) |
PrintStream |
PrintStream.printf(Locale locale,
String format,
Object... args) |
PrintStream |
PrintStream.printf(String format,
Object... args) |
Modifier and Type | Field and Description |
---|---|
static PrintStream |
System.err |
static PrintStream |
System.out |
Modifier and Type | Method and Description |
---|---|
void |
Throwable.printStackTrace(PrintStream s)
Print details of the exception/error to the provided stream.
|
static void |
System.setErr(PrintStream err)
Redirect System.err
|
static void |
System.setOut(PrintStream out)
Redirect System.out
|
Modifier and Type | Method and Description |
---|---|
void |
Properties.list(PrintStream out)
Prints the key/value pairs to the given print stream.
|
Constructor and Description |
---|
Formatter(PrintStream out)
Constructs a new
Formatter using the default
locale with the specified output stream. |