scale.visual
Class External

java.lang.Object
  extended by scale.visual.External

public class External
extends java.lang.Object

Wrapper for external process creation and communication.

$Id: External.java,v 1.19 2007-03-22 13:43:17 burrill Exp $

Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.

This wrapper simplifies the creation of external processes and communicating with them through pipes.


Constructor Summary
External(java.lang.String s)
          This method starts an exteral program in a separate process and establishes communication with it.
 
Method Summary
 java.lang.String read()
          Primitive read routine.
 void send(java.lang.String s)
          Primitive send routine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

External

public External(java.lang.String s)
         throws java.io.IOException
This method starts an exteral program in a separate process and establishes communication with it.

Throws:
java.io.IOException
Method Detail

send

public void send(java.lang.String s)
          throws java.io.IOException
Primitive send routine.

Parameters:
s - String to be sent.
Throws:
java.io.IOException

read

public java.lang.String read()
Primitive read routine. Returns input it has read.

Returns:
string of characters read from pipe