com.rapplogic.xbee.api
Class GenericResponse

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeResponse
      extended by com.rapplogic.xbee.api.GenericResponse
All Implemented Interfaces:
java.io.Serializable

public class GenericResponse
extends XBeeResponse

Container for unknown response

Author:
andrew
See Also:
Serialized Form

Constructor Summary
GenericResponse()
           
 
Method Summary
 int getGenericApiId()
           
 void parse(IPacketParser parser)
          All subclasses must implement to parse the packet from the input stream.
 void setGenericApiId(int genericApiId)
           
 
Methods inherited from class com.rapplogic.xbee.api.XBeeResponse
equals, finish, getApiId, getChecksum, getLength, getPacketBytes, getProcessedPacketBytes, getRawPacketBytes, hashCode, isError, setApiId, setChecksum, setError, setLength, setRawPacketBytes, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericResponse

public GenericResponse()
Method Detail

getGenericApiId

public int getGenericApiId()

setGenericApiId

public void setGenericApiId(int genericApiId)

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