|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.marineapi.nmea.sentence.Checksum
public final class Checksum
Provides Sentence checksum calculation and utilities.
| Method Summary | |
|---|---|
static String |
add(String sentence)
Calculates and adds a checksum to specified sentence String. |
static String |
calculate(String nmea)
Calculates the checksum of sentence String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String add(String sentence)
For example,
$GPGLL,6011.552,N,02501.941,E,120045,A
results in
$GPGLL,6011.552,N,02501.941,E,120045,A*26
$GPGLL,6011.552,N,02501.941,E,120045,A*00
results in
$GPGLL,6011.552,N,02501.941,E,120045,A*26
sentence - Sentence in String representation
public static String calculate(String nmea)
nmea - NMEA Sentence with or without checksum.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||