com.tek42.perforce.process
Interface Executor

All Known Implementing Classes:
CmdLineExecutor, HudsonP4Executor

public interface Executor

A simplified interface for interacting with another process.

Author:
Mike Wille

Method Summary
 void close()
          Close down all open resources
 void exec(java.lang.String[] args)
          Execute the specified command and its arguments
 java.io.BufferedReader getReader()
          Returns a BufferedReader for reading from the stdout/stderr of this process
 java.io.BufferedWriter getWriter()
          Returns a BufferedWriter for writing to the stdin of this process
 

Method Detail

exec

void exec(java.lang.String[] args)
          throws PerforceException
Execute the specified command and its arguments

Parameters:
args -
Throws:
PerforceException

getWriter

java.io.BufferedWriter getWriter()
Returns a BufferedWriter for writing to the stdin of this process

Returns:

getReader

java.io.BufferedReader getReader()
Returns a BufferedReader for reading from the stdout/stderr of this process

Returns:

close

void close()
Close down all open resources



Copyright © 2009. All Rights Reserved.