com.rapplogic.xbee.api.zigbee
Class ZNetRxResponse

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeResponse
      extended by com.rapplogic.xbee.api.zigbee.ZNetRxBaseResponse
          extended by com.rapplogic.xbee.api.zigbee.ZNetRxResponse
All Implemented Interfaces:
NoRequestResponse, java.io.Serializable
Direct Known Subclasses:
ZNetExplicitRxResponse

public class ZNetRxResponse
extends ZNetRxBaseResponse
implements NoRequestResponse

Series 2 XBee. This packet is received when a remote XBee sends a ZNetTxRequest

API ID: 0x90

Author:
andrew
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapplogic.xbee.api.zigbee.ZNetRxBaseResponse
ZNetRxBaseResponse.Option
 
Constructor Summary
ZNetRxResponse()
           
 
Method Summary
 int[] getData()
           
 void parse(IPacketParser parser)
          All subclasses must implement to parse the packet from the input stream.
 void setData(int[] data)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.zigbee.ZNetRxBaseResponse
getOption, getRemoteAddress16, getRemoteAddress64, parseAddress, parseOption, setOption, setRemoteAddress16, setRemoteAddress64
 
Methods inherited from class com.rapplogic.xbee.api.XBeeResponse
equals, finish, getApiId, getChecksum, getLength, getPacketBytes, getProcessedPacketBytes, getRawPacketBytes, hashCode, isError, setApiId, setChecksum, setError, setLength, setRawPacketBytes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZNetRxResponse

public ZNetRxResponse()
Method Detail

getData

public int[] getData()

setData

public void setData(int[] data)

parse

public void parse(IPacketParser parser)
           throws java.io.IOException
Description copied from class: XBeeResponse
All subclasses must implement to parse the packet from the input stream. The subclass must parse all bytes in the packet starting after the API_ID, and up to but not including the checksum. Reading either more or less bytes that expected will result in an error.

Specified by:
parse in class XBeeResponse
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class ZNetRxBaseResponse