public class StreamPair
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamPair.Type
Defines available stream types.
|
| Constructor and Description |
|---|
StreamPair(java.io.PrintStream out,
java.io.PrintStream err)
Creates a stream pair from the given output and error print stream.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.PrintStream |
get(StreamPair.Type type) |
public StreamPair(java.io.PrintStream out,
java.io.PrintStream err)
out - The standard output print stream.err - the error output print stream.public java.io.PrintStream get(StreamPair.Type type)
type - The requested type.type.