A C D E F G I M O P R S T U V W

A

attach(Process) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Attach to a child streams from the given process.

C

close(Closeable...) - Static method in class org.sonatype.gshell.io.Closer
 
close() - Method in class org.sonatype.gshell.io.InputPipe
 
close() - Method in class org.sonatype.gshell.io.StreamSet
 
Closer - Class in org.sonatype.gshell.io
Quietly closes Closeable objects.
Closer() - Constructor for class org.sonatype.gshell.io.Closer
 
createChildErrorPump(InputStream, OutputStream) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Create the pump to handle error output.
createChildOutputPump(InputStream, OutputStream) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Create the pump to handle child output.
createInputPump(InputStream, OutputStream, boolean) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Creates a stream pumper to copy the given input stream to the given output stream.
createPump(InputStream, OutputStream) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Creates a stream pumper to copy the given input stream to the given output stream.
createPump(InputStream, OutputStream, boolean) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Creates a stream pumper to copy the given input stream to the given output stream.
current() - Static method in class org.sonatype.gshell.io.StreamJack
Returns the currently registered streams.

D

deregister() - Static method in class org.sonatype.gshell.io.StreamJack
Re-register streams for the current thread, and restore the previous if any.

E

err - Variable in class org.sonatype.gshell.io.StreamSet
 

F

flush(Flushable...) - Static method in class org.sonatype.gshell.io.Flusher
 
flush() - Method in class org.sonatype.gshell.io.StreamSet
 
Flusher - Class in org.sonatype.gshell.io
Quietly flushes Flushable objects.
Flusher() - Constructor for class org.sonatype.gshell.io.Flusher
 

G

getBufferSize() - Method in class org.sonatype.gshell.io.StreamPumper
Get the size in bytes of the read buffer.
getException() - Method in class org.sonatype.gshell.io.StreamPumper
Get the exception encountered, if any.
getInput() - Method in class org.sonatype.gshell.io.StreamSet
 
getInputStream() - Method in class org.sonatype.gshell.io.InputPipe
 
getOutput(StreamSet.OutputType) - Method in class org.sonatype.gshell.io.StreamSet
 

I

in - Variable in class org.sonatype.gshell.io.StreamSet
 
InputPipe - Class in org.sonatype.gshell.io
An input pipe which can be interrupted.
InputPipe(StreamSet, Terminal, InputPipe.InterruptHandler) - Constructor for class org.sonatype.gshell.io.InputPipe
 
InputPipe.InterruptHandler - Interface in org.sonatype.gshell.io
 
install() - Static method in class org.sonatype.gshell.io.StreamJack
Install the hijacker.
install(InputStream, PrintStream, PrintStream) - Static method in class org.sonatype.gshell.io.StreamJack
Install the hijacker and register streams for the current thread.
install(InputStream, PrintStream) - Static method in class org.sonatype.gshell.io.StreamJack
Install the hijacker and register combined streams for the current thread.
install(StreamSet) - Static method in class org.sonatype.gshell.io.StreamJack
Install the hijacker and register streams for the current thread.
interrupt() - Method in interface org.sonatype.gshell.io.InputPipe.InterruptHandler
 
isFinished() - Method in class org.sonatype.gshell.io.StreamPumper
Tells whether the end of the stream has been reached.
isInstalled() - Static method in class org.sonatype.gshell.io.StreamJack
Check if the hijacker has been installed.
isOutputCombined() - Method in class org.sonatype.gshell.io.StreamSet
 
isRegistered() - Static method in class org.sonatype.gshell.io.StreamJack
Check if there are streams registered for the current thread.

M

maybeInstall() - Static method in class org.sonatype.gshell.io.StreamJack
 
maybeInstall(StreamSet) - Static method in class org.sonatype.gshell.io.StreamJack
 

O

org.sonatype.gshell.io - package org.sonatype.gshell.io
Input/Output Utilities.
out - Variable in class org.sonatype.gshell.io.StreamSet
 

P

prefix(String) - Method in interface org.sonatype.gshell.io.PrefixingStream.Prefixer
 
PrefixingStream - Class in org.sonatype.gshell.io
Prefixes printed lines as instructed to by a given PrefixingStream.Prefixer.
PrefixingStream(PrefixingStream.Prefixer, OutputStream, boolean) - Constructor for class org.sonatype.gshell.io.PrefixingStream
 
PrefixingStream(PrefixingStream.Prefixer, OutputStream) - Constructor for class org.sonatype.gshell.io.PrefixingStream
 
PrefixingStream(String, OutputStream, boolean) - Constructor for class org.sonatype.gshell.io.PrefixingStream
 
PrefixingStream(String, OutputStream) - Constructor for class org.sonatype.gshell.io.PrefixingStream
 
PrefixingStream.Prefixer - Interface in org.sonatype.gshell.io
 
PumpStreamHandler - Class in org.sonatype.gshell.io
Copies standard output and error of children streams to standard output and error of the parent.
PumpStreamHandler(StreamSet) - Constructor for class org.sonatype.gshell.io.PumpStreamHandler
 

R

register(InputStream, PrintStream, PrintStream) - Static method in class org.sonatype.gshell.io.StreamJack
Register streams for the current thread.
register(InputStream, PrintStream) - Static method in class org.sonatype.gshell.io.StreamJack
Register combined streams for the current thread.
register(StreamSet) - Static method in class org.sonatype.gshell.io.StreamJack
Register streams for the current thread.
restore(StreamSet) - Static method in class org.sonatype.gshell.io.StreamJack
Restores the System streams to the given pair and resets the hijacker state to un-installed.
restore() - Static method in class org.sonatype.gshell.io.StreamJack
Restores the original System streams from StreamSet.SYSTEM and resets the hijacker state to un-installed.
run() - Method in class org.sonatype.gshell.io.InputPipe
 
run() - Method in class org.sonatype.gshell.io.StreamPumper
Copies data from the input stream to the output stream.

S

setAutoFlush(boolean) - Method in class org.sonatype.gshell.io.StreamPumper
Set whether data should be flushed through to the output stream.
setBufferSize(int) - Method in class org.sonatype.gshell.io.StreamPumper
Set the size in bytes of the read buffer.
setChildErrorStream(InputStream) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Set the input stream from which to read the standard error of the child.
setChildInputStream(OutputStream) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Set the output stream by means of which input can be sent to the child.
setChildOutputStream(InputStream) - Method in class org.sonatype.gshell.io.PumpStreamHandler
Set the input stream from which to read the standard output of the child.
start() - Method in class org.sonatype.gshell.io.InputPipe
 
start() - Method in class org.sonatype.gshell.io.PumpStreamHandler
Start pumping the streams.
stop() - Method in interface org.sonatype.gshell.io.InputPipe.InterruptHandler
 
stop() - Method in class org.sonatype.gshell.io.PumpStreamHandler
Stop pumping the streams.
stop() - Method in class org.sonatype.gshell.io.StreamPumper
Stop the pumper as soon as possible.
StreamJack - Class in org.sonatype.gshell.io
Hijacks the systems standard input, output and error streams on a per-thread basis and redirects to given streams.
StreamJack() - Constructor for class org.sonatype.gshell.io.StreamJack
 
StreamPumper - Class in org.sonatype.gshell.io
Copies all data from an input stream to an output stream.
StreamPumper(InputStream, OutputStream, boolean) - Constructor for class org.sonatype.gshell.io.StreamPumper
Create a new stream pumper.
StreamPumper(InputStream, OutputStream) - Constructor for class org.sonatype.gshell.io.StreamPumper
Create a new stream pumper.
StreamSet - Class in org.sonatype.gshell.io
A set of input, output and error streams.
StreamSet(InputStream, PrintStream, PrintStream) - Constructor for class org.sonatype.gshell.io.StreamSet
 
StreamSet(InputStream, PrintStream) - Constructor for class org.sonatype.gshell.io.StreamSet
 
StreamSet.OutputType - Enum in org.sonatype.gshell.io
Output stream type.
SYSTEM - Static variable in class org.sonatype.gshell.io.StreamSet
The original System streams (as they were when this class loads).
system() - Static method in class org.sonatype.gshell.io.StreamSet
Create a new stream set as System is currently configured.
system(StreamSet) - Static method in class org.sonatype.gshell.io.StreamSet
Install the given stream set as the System streams.
SYSTEM_FD - Static variable in class org.sonatype.gshell.io.StreamSet
The System streams as file streams, for a better chance of non-buffered I/O.

T

toString() - Method in class org.sonatype.gshell.io.StreamSet
 

U

uninstall() - Static method in class org.sonatype.gshell.io.StreamJack
Uninstall the hijacker.

V

valueOf(String) - Static method in enum org.sonatype.gshell.io.StreamSet.OutputType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.sonatype.gshell.io.StreamSet.OutputType
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitFor() - Method in class org.sonatype.gshell.io.StreamPumper
This method blocks until the stream pumper finishes.
write(byte[], int, int) - Method in class org.sonatype.gshell.io.PrefixingStream
 

A C D E F G I M O P R S T U V W

Copyright © 2008-2009. All Rights Reserved.