- java.lang.Object
-
- jnr.posix.util.Java5ProcessMaker
-
- All Implemented Interfaces:
ProcessMaker
public class Java5ProcessMaker extends Object implements ProcessMaker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jnr.posix.util.ProcessMaker
ProcessMaker.Redirect
-
-
Constructor Summary
Constructors Constructor Description Java5ProcessMaker(POSIXHandler handler)
Java5ProcessMaker(POSIXHandler handler, String... command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
command()
ProcessMaker
command(String... command)
ProcessMaker
command(List<String> command)
File
directory()
ProcessMaker
directory(File dir)
Map<String,String>
environment()
ProcessMaker
environment(String[] envLines)
ProcessMaker
inheritIO()
ProcessMaker.Redirect
redirectError()
ProcessMaker
redirectError(File file)
ProcessMaker
redirectError(ProcessMaker.Redirect destination)
boolean
redirectErrorStream()
ProcessMaker
redirectErrorStream(boolean redirectErrorStream)
ProcessMaker.Redirect
redirectInput()
ProcessMaker
redirectInput(File file)
ProcessMaker
redirectInput(ProcessMaker.Redirect source)
ProcessMaker.Redirect
redirectOutput()
ProcessMaker
redirectOutput(File file)
ProcessMaker
redirectOutput(ProcessMaker.Redirect destination)
Process
start()
-
-
-
Constructor Detail
-
Java5ProcessMaker
public Java5ProcessMaker(POSIXHandler handler, String... command)
-
Java5ProcessMaker
public Java5ProcessMaker(POSIXHandler handler)
-
-
Method Detail
-
command
public List<String> command()
- Specified by:
command
in interfaceProcessMaker
-
command
public ProcessMaker command(List<String> command)
- Specified by:
command
in interfaceProcessMaker
-
command
public ProcessMaker command(String... command)
- Specified by:
command
in interfaceProcessMaker
-
directory
public File directory()
- Specified by:
directory
in interfaceProcessMaker
-
directory
public ProcessMaker directory(File dir)
- Specified by:
directory
in interfaceProcessMaker
-
environment
public Map<String,String> environment()
- Specified by:
environment
in interfaceProcessMaker
-
environment
public ProcessMaker environment(String[] envLines)
- Specified by:
environment
in interfaceProcessMaker
-
inheritIO
public ProcessMaker inheritIO()
- Specified by:
inheritIO
in interfaceProcessMaker
-
redirectError
public ProcessMaker.Redirect redirectError()
- Specified by:
redirectError
in interfaceProcessMaker
-
redirectError
public ProcessMaker redirectError(File file)
- Specified by:
redirectError
in interfaceProcessMaker
-
redirectError
public ProcessMaker redirectError(ProcessMaker.Redirect destination)
- Specified by:
redirectError
in interfaceProcessMaker
-
redirectErrorStream
public boolean redirectErrorStream()
- Specified by:
redirectErrorStream
in interfaceProcessMaker
-
redirectErrorStream
public ProcessMaker redirectErrorStream(boolean redirectErrorStream)
- Specified by:
redirectErrorStream
in interfaceProcessMaker
-
redirectInput
public ProcessMaker.Redirect redirectInput()
- Specified by:
redirectInput
in interfaceProcessMaker
-
redirectInput
public ProcessMaker redirectInput(File file)
- Specified by:
redirectInput
in interfaceProcessMaker
-
redirectInput
public ProcessMaker redirectInput(ProcessMaker.Redirect source)
- Specified by:
redirectInput
in interfaceProcessMaker
-
redirectOutput
public ProcessMaker.Redirect redirectOutput()
- Specified by:
redirectOutput
in interfaceProcessMaker
-
redirectOutput
public ProcessMaker redirectOutput(File file)
- Specified by:
redirectOutput
in interfaceProcessMaker
-
redirectOutput
public ProcessMaker redirectOutput(ProcessMaker.Redirect destination)
- Specified by:
redirectOutput
in interfaceProcessMaker
-
start
public Process start() throws IOException
- Specified by:
start
in interfaceProcessMaker
- Throws:
IOException
-
-