rreval
Class ConnectionR

java.lang.Object
  extended by rreval.ConnectionR

public class ConnectionR
extends java.lang.Object

A socket connection to a local R session and the associated stream reader and writer. Note that an RReader, RWriter pair share the same connection (since both actually need to read and write.


Constructor Summary
ConnectionR(java.net.Socket socket)
           
 
Method Summary
 void close()
           
 int read(char[] buffer)
           
 Message readMessage()
           
 void write(char[] buffer)
           
 void writeMessage(Message m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionR

public ConnectionR(java.net.Socket socket)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

read

public int read(char[] buffer)
         throws java.io.IOException
Throws:
java.io.IOException

write

public void write(char[] buffer)
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()

readMessage

public Message readMessage()
                    throws java.lang.Exception
Throws:
java.lang.Exception

writeMessage

public void writeMessage(Message m)
                  throws java.lang.Exception
Throws:
java.lang.Exception