public class JavaPythonCommunication
extends java.lang.Object
Constructor and Description |
---|
JavaPythonCommunication(java.lang.String program,
JavaMessageHandler cb)
Initializes and returns a reference to a JavaPythonComputation.
|
JavaPythonCommunication(java.lang.String program,
JavaMessageHandler cb,
int pIn) |
Modifier and Type | Method and Description |
---|---|
void |
sendMessage(JavaByteMessage j) |
void |
setSocketPort(int o) |
public JavaPythonCommunication(java.lang.String program, JavaMessageHandler cb) throws java.io.IOException
StreamReader
, StreamWriter
, and
StreamStringReader
to the programs standard in, out, and
error respectively.program
- String
identifying the C++ program to be runcb
- JavaMessageHandler
which is needed by the
StreamReader
instantiated herejava.io.IOException
- If there is a problem starting up the program, or connecting
the unnamed pipes to the programpublic JavaPythonCommunication(java.lang.String program, JavaMessageHandler cb, int pIn) throws java.io.IOException
java.io.IOException
public void setSocketPort(int o)
public void sendMessage(JavaByteMessage j)