|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rapplogic.xbee.api.XBeeResponse
public abstract class XBeeResponse
The super class of all XBee Receive packets
Constructor Summary | |
---|---|
XBeeResponse()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
void |
finish()
For internal use only. |
ApiId |
getApiId()
|
int |
getChecksum()
|
XBeePacketLength |
getLength()
|
int[] |
getPacketBytes()
Deprecated. Use getRawPacketBytes instead |
int[] |
getProcessedPacketBytes()
Returns an array of all bytes (after being un-escaped) in the packet except the start byte. |
int[] |
getRawPacketBytes()
Returns an array all bytes (as received off radio, including escape bytes) in packet except the start byte. |
int |
hashCode()
|
boolean |
isError()
Indicates an error occurred during the parsing of the packet. |
protected abstract void |
parse(IPacketParser parser)
All subclasses must implement to parse the packet from the input stream. |
void |
setApiId(ApiId apiId)
|
void |
setChecksum(int checksum)
|
void |
setError(boolean error)
|
void |
setLength(XBeePacketLength length)
|
void |
setRawPacketBytes(int[] packetBytes)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XBeeResponse()
Method Detail |
---|
public XBeePacketLength getLength()
public void setLength(XBeePacketLength length)
public ApiId getApiId()
public void setApiId(ApiId apiId)
public int getChecksum()
public void setChecksum(int checksum)
public boolean isError()
public void setError(boolean error)
public int[] getPacketBytes()
public int[] getRawPacketBytes()
public int[] getProcessedPacketBytes()
public void setRawPacketBytes(int[] packetBytes)
public void finish()
protected abstract void parse(IPacketParser parser) throws java.io.IOException
parser
-
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
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 |