|
|||||||||
| 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
public class RecordsPacket
Represents a packet transmitted before a large transfer of data units.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
RecordsPacket(GarminPacket packet)
Creates a records packet from the given packet data. |
|
RecordsPacket(int connectionType,
int numRecords)
Creates a records packet that indicates the given number of items will follow. |
|
| 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 |
|---|
commandToString, createBasicPacket, createCommandPacket, getChecksum, getConnectionType, getData, getDataLength, getID, getRawPacketData, getType, idToString, readDataByte, readDataDouble, readDataFloat, readDataLong, readDataString, readDataWord, setPacket, setSerialPacket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RecordsPacket(int connectionType,
int numRecords)
connectionType - Type of connection used to send packet - either GarminGPS.USB
or GarminGPS.SERIAL.numRecords - Number of records that will follow this packet.public RecordsPacket(GarminPacket packet)
packet - Packet to copy.
PacketNotRecognisedException - 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 | ||||||||