|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rosuda.REngine.Rserve.protocol.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 |
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 - content| Method 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 String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||