|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sonatype.gshell.io.StreamSet
public class StreamSet
A set of input, output and error streams.
| Nested Class Summary | |
|---|---|
static class |
StreamSet.OutputType
Output stream type. |
| Field Summary | |
|---|---|
java.io.PrintStream |
err
|
java.io.InputStream |
in
|
java.io.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 Summary | |
|---|---|
StreamSet(java.io.InputStream in,
java.io.PrintStream out)
|
|
StreamSet(java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
java.io.InputStream |
getInput()
|
java.io.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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.io.InputStream in
public final java.io.PrintStream out
public final java.io.PrintStream err
public static final StreamSet SYSTEM
System streams (as they were when this class loads).
public static final StreamSet SYSTEM_FD
System streams as file streams, for a better chance of non-buffered I/O.
| Constructor Detail |
|---|
public StreamSet(java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
public StreamSet(java.io.InputStream in,
java.io.PrintStream out)
| Method Detail |
|---|
public boolean isOutputCombined()
public java.io.InputStream getInput()
public java.io.PrintStream getOutput(StreamSet.OutputType type)
public void flush()
public void close()
public java.lang.String toString()
toString in class java.lang.Objectpublic static StreamSet system()
System is currently configured.
public static void system(StreamSet streams)
System streams.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||