B C E G I M P R S

B

BytePump - Class in com.perdues
A BytePump copies from an InputStream to an OutputStream until end of file or until an Exception or other Throwable occurs.
BytePump(InputStream, OutputStream) - Constructor for class com.perdues.BytePump
Creates a BytePump that will copy from the InputStream to the OutputStream until it reaches the end of the InputStream or throws an Exception.

C

CharPump - Class in com.perdues
Copies from the Reader to the Writer until it reaches the end of the InputStream or throws an Exception.
CharPump(Reader, Writer) - Constructor for class com.perdues.CharPump
Creates a CharPump that will copy the Reader to the Writer until it reaches the end of the Reader or throws an Exception.
com.perdues - package com.perdues
 
com.perdues.test - package com.perdues.test
 

E

exec(String[]) - Static method in class com.perdues.ProcessUtils
Runs a command-line program and returns all of its standard output as a String.
exec(String[], Writer, Writer) - Static method in class com.perdues.ProcessUtils
Runs a command-line program, passes its standard output and error output to two Writers, and returns its final exit status.
exec(String[], Reader, Writer, Writer) - Static method in class com.perdues.ProcessUtils
Runs a command-line program, writes all of its standard output and error output to two Writers, returns its final exit status, and makes your Reader available to the program.
exec(String[], OutputStream, OutputStream) - Static method in class com.perdues.ProcessUtils
Runs a command-line program, writes all of its standard output and error output to two OutputStreams, and returns its final exit status.
exec(String[], InputStream, OutputStream, OutputStream) - Static method in class com.perdues.ProcessUtils
Runs a command-line program, writes all of its standard output and error output to two OutputStreams, returns its final exit status, and makes your InputStream available to the program.

G

getExitCause() - Method in class com.perdues.BytePump
If this thread terminated because of a Throwable, it makes the value available through this method.
getExitCause() - Method in class com.perdues.CharPump
If this thread terminated because of a Throwable, it makes the value available through this method.
getMessage() - Method in exception com.perdues.ProcessUtils.Exception
 
getStatus() - Method in exception com.perdues.ProcessUtils.Exception
Returns the process exit status of the process as reported by Process.waitFor.
getStderr() - Method in exception com.perdues.ProcessUtils.Exception
Returns all output sent to the process's error output, an empty string if there was none.
getStdout() - Method in exception com.perdues.ProcessUtils.Exception
Returns all output sent to the process's standard output, an empty string if there was none.

I

isCloseOnExit() - Method in class com.perdues.BytePump
Returns the closeOnExit status.
isCloseOnExit() - Method in class com.perdues.CharPump
Returns this CharPump's closeOnExit status.

M

main(String[]) - Static method in class com.perdues.test.ProcessUtilsTest
Main routine that takes the name of the program to run and its arguments are the command line arguments.

P

ProcessUtils - Class in com.perdues
Convenient class to run a native command-line program from Java and receive its output and exit status.
ProcessUtils.Exception - Exception in com.perdues
This Exception class reports error exit status, all standard output and error output from an external program.
ProcessUtils.Exception(int, String, String) - Constructor for exception com.perdues.ProcessUtils.Exception
 
ProcessUtilsTest - Class in com.perdues.test
 
ProcessUtilsTest() - Constructor for class com.perdues.test.ProcessUtilsTest
 

R

run() - Method in class com.perdues.BytePump
The thread automatically runs this method.
run() - Method in class com.perdues.CharPump
The thread automatically runs this method.

S

setCloseOnExit(boolean) - Method in class com.perdues.BytePump
Setting closeOnExit causes this to reliably close the OutputStream whenever the thread terminates.
setCloseOnExit(boolean) - Method in class com.perdues.CharPump
Setting closeOnExit causes this to reliably close its Writer when the thread terminates.

B C E G I M P R S