public class NmeaReader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NmeaReader.GPGGA |
static class |
NmeaReader.GPGSA |
static class |
NmeaReader.GPRMC |
static class |
NmeaReader.GPVTG |
static class |
NmeaReader.NMEA_TYPE
Handler for the different types that NMEA speaks.
|
private static class |
NmeaReader.NMEAParserState |
Modifier and Type | Field and Description |
---|---|
GpxData |
data |
NmeaReader.NMEAParserState |
ps |
private static SimpleDateFormat |
RMCTIMEFMT |
private static SimpleDateFormat |
RMCTIMEFMTSTD |
Constructor and Description |
---|
NmeaReader(InputStream source,
File relativeMarkerPath) |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfCoordinates() |
int |
getParserChecksumErrors() |
int |
getParserMalformed() |
int |
getParserUnknown() |
int |
getParserZeroCoordinates() |
private LatLon |
parseLatLon(String ns,
String ew,
String dlat,
String dlon) |
private boolean |
parseNMEASentence(String s,
NmeaReader.NMEAParserState ps) |
private Date |
readTime(String p) |
private static final SimpleDateFormat RMCTIMEFMT
private static final SimpleDateFormat RMCTIMEFMTSTD
public NmeaReader.NMEAParserState ps
public NmeaReader(InputStream source, File relativeMarkerPath)
public int getParserUnknown()
public int getParserZeroCoordinates()
public int getParserChecksumErrors()
public int getParserMalformed()
public int getNumberOfCoordinates()
private boolean parseNMEASentence(String s, NmeaReader.NMEAParserState ps) throws IllegalDataException
IllegalDataException
private LatLon parseLatLon(String ns, String ew, String dlat, String dlon) throws NumberFormatException
NumberFormatException