edu.whoi.ursa.argoDatabase.process
Class External

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.process.External

public class External
extends java.lang.Object


Field Summary
private  java.io.BufferedReader br
           
private  java.io.BufferedReader bre
           
private  java.lang.String[] command
           
private  java.io.InputStream err
           
private  java.io.OutputStream in
           
private  java.io.InputStream out
           
private  java.lang.Process process
           
 
Constructor Summary
External(java.lang.String[] command)
           
 
Method Summary
 void closeStdin()
           
private  java.lang.Process execute()
           
 java.lang.String[] getCommand()
           
 java.lang.Process getProcess()
           
 java.lang.String readError()
           
 java.lang.String readOut()
           
 java.lang.String readOutput()
           
 void setCommand(java.lang.String[] command)
           
 void setProcess(java.lang.Process process)
           
 int waitFor()
           
 void write(java.lang.String... s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

private java.lang.String[] command

process

private java.lang.Process process

out

private java.io.InputStream out

err

private java.io.InputStream err

in

private java.io.OutputStream in

br

private java.io.BufferedReader br

bre

private java.io.BufferedReader bre
Constructor Detail

External

public External(java.lang.String[] command)
Parameters:
command -
process -
Method Detail

execute

private java.lang.Process execute()

readOutput

public java.lang.String readOutput()

closeStdin

public void closeStdin()

write

public void write(java.lang.String... s)

readOut

public java.lang.String readOut()

readError

public java.lang.String readError()

getCommand

public java.lang.String[] getCommand()
Returns:
the command

setCommand

public void setCommand(java.lang.String[] command)
Parameters:
command - the command to set

getProcess

public java.lang.Process getProcess()
Returns:
the process

waitFor

public int waitFor()

setProcess

public void setProcess(java.lang.Process process)
Parameters:
process - the process to set