rreval
Class ConnectionR
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionR
public ConnectionR(java.net.Socket socket)
throws java.io.IOException
- Throws:
java.io.IOException
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