com.tek42.perforce.process
Interface Executor

All Known Subinterfaces:
HudsonP4Executor
All Known Implementing Classes:
CmdLineExecutor, HudsonP4DefaultExecutor, HudsonP4RemoteExecutor

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(String[] args)
          Execute the specified command and its arguments
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 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
 

Method Detail

exec

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

Parameters:
args -
Throws:
PerforceException

getWriter

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

Returns:

getOutputStream

OutputStream getOutputStream()

getReader

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

Returns:

getInputStream

InputStream getInputStream()

close

void close()
Close down all open resources



Copyright © 2004-2012 Hudson. All Rights Reserved.