Package de.saar.convenientprocess
Class ConvenientProcess
java.lang.Object
java.lang.Thread
de.saar.convenientprocess.ConvenientProcess
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ReadyProcess
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected de.saar.convenientprocess.InputBufferingThreadprotected de.saar.convenientprocess.InputBufferingThreadprotected ProcessFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionConvenientProcess(String cmd) ConvenientProcess(String[] cmdarray, String dir) ConvenientProcess(String cmd, String dir) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidvoiddestroy()intvoidbooleanbooleanvoidrun()voidsetDebug(boolean debug) voidsetInputLog(String filename) voidsetOutputLog(String filename) protected voidstdin()protected voidMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
process
-
bOut
protected de.saar.convenientprocess.InputBufferingThread bOut -
bErr
protected de.saar.convenientprocess.InputBufferingThread bErr
-
-
Constructor Details
-
ConvenientProcess
-
ConvenientProcess
-
ConvenientProcess
-
-
Method Details
-
run
public void run() -
stdin
-
println
-
closeWritingPipe
public void closeWritingPipe() -
readLineStdout
-
readLineStderr
-
readyStdout
public boolean readyStdout() -
readyStderr
public boolean readyStderr() -
destroy
public void destroy() -
exitValue
public int exitValue() -
setOutputLog
-
setInputLog
-
setDebug
public void setDebug(boolean debug) -
waitForAndCleanup
protected void waitForAndCleanup() -
startupThreads
protected void startupThreads() -
cleanupStreams
protected void cleanupStreams()
-