|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.JRclient.Rpacket
public class Rpacket
small class encapsulating packets from/to Rserv
Constructor Summary | |
---|---|
Rpacket(int Rcmd,
byte[] Rcont)
construct new packet |
Method Summary | |
---|---|
int |
getCmd()
get command |
byte[] |
getCont()
get content |
int |
getStat()
get status code of last response |
boolean |
isError()
check last response for RESP_ERR |
boolean |
isOk()
check last response for RESP_OK |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rpacket(int Rcmd, byte[] Rcont)
Rcmd
- commandRcont
- contentMethod Detail |
---|
public int getCmd()
public boolean isOk()
true
if last response was OKpublic boolean isError()
true
if last response was ERRORpublic int getStat()
public byte[] getCont()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |