public class StreamSet extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StreamSet.OutputType
Output stream type.
|
Modifier and Type | Field and Description |
---|---|
PrintStream |
err |
InputStream |
in |
PrintStream |
out |
static StreamSet |
SYSTEM
The original
System streams (as they were when this class loads). |
static StreamSet |
SYSTEM_FD
The
System streams as file streams, for a better chance of non-buffered I/O. |
Constructor and Description |
---|
StreamSet(InputStream in,
PrintStream out) |
StreamSet(InputStream in,
PrintStream out,
PrintStream err) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
InputStream |
getInput() |
PrintStream |
getOutput(StreamSet.OutputType type) |
boolean |
isOutputCombined() |
static StreamSet |
system()
Create a new stream set as
System is currently configured. |
static void |
system(StreamSet streams)
Install the given stream set as the
System streams. |
String |
toString() |
public final InputStream in
public final PrintStream out
public final PrintStream err
public static final StreamSet SYSTEM
System
streams (as they were when this class loads).public StreamSet(InputStream in, PrintStream out, PrintStream err)
public StreamSet(InputStream in, PrintStream out)
public boolean isOutputCombined()
public InputStream getInput()
public PrintStream getOutput(StreamSet.OutputType type)
public void flush()
public void close()
Copyright © 2008-2012 Sonatype. All Rights Reserved.