net.sf.mmm.util.process.api
Class ProcessContext

java.lang.Object
  extended by 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)

Field Summary
private  OutputStream errStream
           
private  InputStream inStream
           
private  boolean keepStreamsOpen
           
private  OutputStream outStream
           
 
Constructor Summary
ProcessContext()
          The constructor.
 
Method Summary
 OutputStream getErrStream()
           
 InputStream getInStream()
          This method gets the input stream that is transferred to the process as stdin.
 OutputStream getOutStream()
           
 boolean isKeepStreamsOpen()
           
 void setErrStream(OutputStream errStream)
           
 void setInStream(InputStream inStream)
           
 void setKeepStreamsOpen(boolean keepStreamsOpen)
           
 void setOutStream(OutputStream outStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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()
Constructor Detail

ProcessContext

public ProcessContext()
The constructor. All streams are initialized to act like /dev/null.

Method Detail

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.