|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessBuilder
Interface used to create new processes.
Method Summary | |
---|---|
Process |
attach(int pid)
Attach to an existing process |
ProcessBuilder |
command(java.lang.String command)
Set the command to execute |
ProcessBuilder |
directory(java.io.File dir)
Specified the current directory to run the command from |
Process |
start()
Create and start the process |
Method Detail |
---|
ProcessBuilder directory(java.io.File dir)
dir
- the directory to run the command from
ProcessBuilder command(java.lang.String command)
command
- the command to execute
Process start() throws java.io.IOException
java.io.IOException
- if the process can not be createdProcess attach(int pid) throws java.io.IOException
java.io.IOException
- if the process can not be attached to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |