public class StdProcessOutputStreamFactory extends Object implements ProcessOutputStreamFactory
Constructor and Description |
---|
StdProcessOutputStreamFactory()
Initiate.
|
StdProcessOutputStreamFactory(boolean isDebug)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
createErrorProcessOutputStream(String processNamespace)
|
OutputStream |
createStandardProcessOutputStream(String processNamespace,
String[] command)
|
public StdProcessOutputStreamFactory()
public StdProcessOutputStreamFactory(boolean isDebug)
isDebug
- Should debug information be printed.public OutputStream createStandardProcessOutputStream(String processNamespace, String[] command) throws IOException
ProcessOutputStreamFactory
Creates the OutputStream
for stdout
of the
ManagedProcess
.
The OutputStream.close()
is invoked when the
ManagedProcess
completes.
createStandardProcessOutputStream
in interface ProcessOutputStreamFactory
processNamespace
- Name space for the ManagedProcess
.command
- Command to start the ManagedProcess
.OutputStream
.IOException
- If fails to create the OutputStream
.public OutputStream createErrorProcessOutputStream(String processNamespace) throws IOException
ProcessOutputStreamFactory
Creates the OutputStream
for stderr
of the
ManagedProcess
.
The OutputStream.close()
is invoked when the
ManagedProcess
completes.
createErrorProcessOutputStream
in interface ProcessOutputStreamFactory
processNamespace
- Name space for the ManagedProcess
.OutputStream
.IOException
- If fails to create the OutputStream
.Copyright © 2005–2016. All rights reserved.