public final class Checksum extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
add(String nmea)
Append or replace existing checksum in specified NMEA sentence.
|
static String |
calculate(String nmea)
Calculates checksum for given NMEA sentence, i.e.
|
static int |
index(String nmea)
Returns the index of checksum separator char in specified NMEA sentence.
|
static String |
xor(String str)
Calculates XOR checksum of given String.
|
public static String add(String nmea)
nmea - Sentence in String representationpublic static String calculate(String nmea)
nmea - Sentence String with or without checksum.public static String xor(String str)
str - String to calculate checksum for.public static int index(String nmea)
nmea - Sentence StringCopyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.