|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.process.gps.garmin.GarminPacket
jwo.landserf.process.gps.garmin.RecordsPacket
Represents a packet transmitted before a large transfer of data units.
Field Summary |
Fields inherited from class jwo.landserf.process.gps.garmin.GarminPacket |
Cmnd_Abort_Transfer, Cmnd_Start_Pvt_Data, Cmnd_Stop_Pvt_Data, Cmnd_Transfer_Alm, Cmnd_Transfer_Posn, Cmnd_Transfer_Prx, Cmnd_Transfer_Rte, Cmnd_Transfer_Time, Cmnd_Transfer_Trk, Cmnd_Transfer_Wpt, Cmnd_Turn_Off_Pwr, DLE, ETX, packet, Pid_Ack_Byte, Pid_Almanac_Data, Pid_Command_Data, Pid_Date_Time_Data, Pid_Nak_Byte, Pid_Position_Data, Pid_Product_Data, Pid_Product_Rqst, Pid_Protocol_Array, Pid_Prx_Wpt_Data, Pid_Pvt_Data, Pid_Records, Pid_Rte_Hdr, Pid_Rte_Link_Data, Pid_Rte_Wpt_Data, Pid_Trk_Data, Pid_Trk_Hdr, Pid_Wpt_Data, Pid_Xfer_Cmplt |
Constructor Summary | |
RecordsPacket(GarminPacket packet)
Creates a records packet from the given packet data. |
|
RecordsPacket(int numRecords)
Creates a records packet that indicates the given number of items will follow. |
|
RecordsPacket(int[] packet)
Creates a records packet from the given data. |
Method Summary | |
int |
getNumber()
Reports the number of records that this packet announces. |
String |
toString()
Reports a textual representation of this packet. |
Methods inherited from class jwo.landserf.process.gps.garmin.GarminPacket |
calcChecksum, commandToString, createBasicPacket, createCommandPacket, getByte, getDataLength, getID, getLength, getPacket, getRawPacket, idToString, isLegal, readByte, readDouble, readFloat, readLong, readNullTerminatedString, readWord, setPacket |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RecordsPacket(int numRecords)
numRecords
- Number of records that will follow this packet.public RecordsPacket(int[] packet)
packet
- Data representing the records data packet.
PacketNotRecognizedException
- if the data do not represent a records packet.
InvalidPacketException
- if the packet data are not the expected length.public RecordsPacket(GarminPacket packet)
packet
- Packet to copy.
PacketNotRecognizedException
- if the given packet is not a records packet.Method Detail |
public int getNumber()
public String toString()
toString
in class GarminPacket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |