|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tek42.perforce.process.CmdLineExecutor
public class CmdLineExecutor
Executes on the command line. This is not thread safe.
| Constructor Summary | |
|---|---|
CmdLineExecutor(Map<String,String> environment)
Requires a map of environment variables (P4USER, P4CLIENT, P4PORT, etc) |
|
| Method Summary | |
|---|---|
void |
close()
Close down all open resources |
void |
exec(String[] args)
Execute the specified command and its arguments |
InputStream |
getInputStream()
|
OutputStream |
getOutputStream()
|
Process |
getProcess()
Useful for things like process.waitFor(). |
BufferedReader |
getReader()
Returns a BufferedReader for reading from the stdout/stderr of this process |
BufferedWriter |
getWriter()
Returns a BufferedWriter for writing to the stdin of this process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmdLineExecutor(Map<String,String> environment)
environment - | Method Detail |
|---|
public void exec(String[] args)
throws PerforceException
Executor
exec in interface ExecutorPerforceExceptionpublic BufferedReader getReader()
Executor
getReader in interface Executorpublic BufferedWriter getWriter()
Executor
getWriter in interface Executorpublic void close()
Executor
close in interface Executorpublic Process getProcess()
public OutputStream getOutputStream()
getOutputStream in interface Executorpublic InputStream getInputStream()
getInputStream in interface Executor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||