Class ProcessUtils
java.lang.Object
net.sf.statsvn.util.ProcessUtils
This class provides a way of launching new processes. It is not the best way
and it surely does not work well in multi-threaded environments. It is
sufficient for StatSVN's single thread.
We should be launching two threads with readers for both, but we are lazy.
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps_p.html
- Author:
- jkealey invalid input: '<'jkealey@shade.ca>
-
Constructor Summary
ConstructorsConstructorDescriptionA utility class (only static methods) should be final and have a private constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessUtilsvoidclose()protected Stringprotected booleanvoidsetErrorStream(InputStream errorStream) voidsetInputStream(InputStream inputStream)
-
Constructor Details
-
ProcessUtils
public ProcessUtils()A utility class (only static methods) should be final and have a private constructor.
-
-
Method Details
-
call
- Throws:
IOException
-
close
- Throws:
IOException
-
hasErrorOccured
- Throws:
IOException
-
getErrorMessage
-
getErrorStream
- Returns:
- the errorStream
-
getInputStream
- Returns:
- the inputStream
-
setErrorStream
- Parameters:
errorStream- the errorStream to set
-
setInputStream
- Parameters:
inputStream- the inputStream to set
-