|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibutton.jib.JibReturnPacket
JibReturnPacket is used for storing the return packet generated by the iButton with Java.
| Field Summary | |
static int |
CMD_OK
|
static int |
CSB_OK
|
| Constructor Summary | |
JibReturnPacket(int[] rawData)
Create a JibReturnPacket with an integer array as its value. |
|
JibReturnPacket(int csb,
int groupID,
int[] data)
Create a JibReturnPacket with a command status byte, group ID and a body. |
|
| Method Summary | |
int |
getCSB()
Get the command status byte of this return packet. |
int |
getGroupID()
Get the group ID of this return packet. |
byte[] |
getReturnBytes()
Get the body of the return packet. |
char[] |
getReturnChars()
Get the body of the return packet. |
char[] |
getReturnChars(int start,
int count)
Get count number of bytes of the return packet starting at start. |
int |
getReturnInteger()
Get the zero byte of the return packet in integer form. |
int |
getReturnInteger(int index)
Get a specific byte of the return packet in integer notation. |
int[] |
getReturnInts()
Get the body of the return packet as an integer array. |
int |
getReturnShort()
Get the zero byte of the return packet in short notation. |
int |
getReturnShort(int index)
Get a specific byte of the return packet in short notation. |
java.lang.String |
getReturnString()
Get the body of the return packet as a String. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int CSB_OK
public static final int CMD_OK
| Constructor Detail |
public JibReturnPacket(int[] rawData)
rawData - to be used as the body of the return packet.
public JibReturnPacket(int csb,
int groupID,
int[] data)
csb - command status byte.groupID - the groupID of the command performed.data - the data for the return value.| Method Detail |
public int getCSB()
public int getGroupID()
public java.lang.String getReturnString()
public int getReturnInteger(int index)
index - the index of the byte to get.public int getReturnInteger()
public int getReturnShort(int index)
index - the index of the byte to get.public int getReturnShort()
public byte[] getReturnBytes()
public char[] getReturnChars()
public char[] getReturnChars(int start,
int count)
start - the offset into the body of the return packet.count - the number of bytes requested.public int[] getReturnInts()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||