| Package | Description |
|---|---|
| org.sonatype.gshell.command |
Command components.
|
| org.sonatype.gshell.util.io |
| Modifier and Type | Field and Description |
|---|---|
StreamSet |
IO.streams |
| Constructor and Description |
|---|
AnsiIO(StreamSet streams,
boolean autoFlush) |
IO(StreamSet streams,
boolean autoFlush) |
IO(StreamSet streams,
Reader in,
PrintWriter out,
PrintWriter err,
boolean autoFlush) |
| Modifier and Type | Field and Description |
|---|---|
static StreamSet |
StreamSet.SYSTEM
The original
System streams (as they were when this class loads). |
static StreamSet |
StreamSet.SYSTEM_FD
The
System streams as file streams, for a better chance of non-buffered I/O. |
| Modifier and Type | Method and Description |
|---|---|
static StreamSet |
StreamJack.current()
Returns the currently registered streams.
|
static StreamSet |
StreamSet.system()
Create a new stream set as
System is currently configured. |
| Modifier and Type | Method and Description |
|---|---|
protected jline.console.ConsoleReader |
PromptReader.createReader(StreamSet streams,
jline.Terminal term) |
static void |
StreamJack.install(StreamSet set)
Install the hijacker and register streams for the current thread.
|
static void |
StreamJack.maybeInstall(StreamSet set) |
static void |
StreamJack.register(StreamSet set)
Register streams for the current thread.
|
static void |
StreamJack.restore(StreamSet streams)
Restores the System streams to the given pair and resets the hijacker state to un-installed.
|
static void |
StreamSet.system(StreamSet streams)
Install the given stream set as the
System streams. |
| Constructor and Description |
|---|
InputPipe(StreamSet streams,
jline.Terminal terminal,
InputPipe.InterruptHandler interruptHandler) |
PromptReader(StreamSet streams,
jline.Terminal term) |
PumpStreamHandler(StreamSet streams) |
Copyright © 2008-2012 Sonatype. All Rights Reserved.