|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.services.location.palgpsparser.Parser
public class Parser
Parses and validate data sent by GPS receiver.
| Constructor Summary | |
|---|---|
Parser()
|
|
| Method Summary | |
|---|---|
static Record |
parseNMEA(java.lang.String s)
Parses a string sent by GPS receiver. |
static boolean |
validateChecksum(java.lang.String sentence)
Returns true if checksum of NMEA sentence is valid All charachter xor'ed results in the trailing hex checksum The checksum calc starts after '$' and ends before '*' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser()
| Method Detail |
|---|
public static Record parseNMEA(java.lang.String s)
throws UnsupportedTypeException,
ParseException
s - String to be parsed
UnsupportedTypeException - If type is not recognized
ParseException - If there was an error during parsingpublic static boolean validateChecksum(java.lang.String sentence)
sentence - Sentence to be parsed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||