To write data during the rlogin session you may use the java.io.OutputStream provided by the Rlogin#getOutputStream method.
Example
// get output stream
rlogin.getOutputStream();