net.sf.mmm.util.process.api
Class ProcessContext
java.lang.Object
net.sf.mmm.util.process.api.ProcessContext
public class ProcessContext
- extends Object
This class represents the context for a process. It is a java-bean that holds
the stdin
, stdout
and
stderr
.
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outStream
private OutputStream outStream
- See Also:
getOutStream()
errStream
private OutputStream errStream
- See Also:
getErrStream()
inStream
private InputStream inStream
- See Also:
getInStream()
keepStreamsOpen
private boolean keepStreamsOpen
- See Also:
isKeepStreamsOpen()
ProcessContext
public ProcessContext()
- The constructor. All streams are initialized to act like
/dev/null
.
getOutStream
public OutputStream getOutStream()
- Returns:
- the outStream
setOutStream
public void setOutStream(OutputStream outStream)
- Parameters:
outStream
- the outStream to set
getErrStream
public OutputStream getErrStream()
- Returns:
- the errStream
setErrStream
public void setErrStream(OutputStream errStream)
- Parameters:
errStream
- the errStream to set
getInStream
public InputStream getInStream()
- This method gets the input stream that is transferred to the process as
stdin
.
- Returns:
- the inStream.
setInStream
public void setInStream(InputStream inStream)
- Parameters:
inStream
- the inStream to set
isKeepStreamsOpen
public boolean isKeepStreamsOpen()
- Returns:
- the keepStreamsOpen
setKeepStreamsOpen
public void setKeepStreamsOpen(boolean keepStreamsOpen)
- Parameters:
keepStreamsOpen
- the keepStreamsOpen to set
Copyright © 2001-2010 mmm-Team. All Rights Reserved.