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 SimpleDateFormat |
rmcTimeFmt |
private SimpleDateFormat |
rmcTimeFmtStd |
| Constructor and Description |
|---|
NmeaReader(InputStream source) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfCoordinates() |
int |
getParserChecksumErrors() |
int |
getParserMalformed() |
int |
getParserUnknown() |
int |
getParserZeroCoordinates() |
private static LatLon |
parseLatLon(String ns,
String ew,
String dlat,
String dlon) |
private boolean |
parseNMEASentence(String s,
NmeaReader.NMEAParserState ps) |
private Date |
readTime(String p) |
private final SimpleDateFormat rmcTimeFmt
private final SimpleDateFormat rmcTimeFmtStd
public NmeaReader.NMEAParserState ps
public NmeaReader(InputStream source) throws IOException
IOExceptionpublic int getParserUnknown()
public int getParserZeroCoordinates()
public int getParserChecksumErrors()
public int getParserMalformed()
public int getNumberOfCoordinates()
private boolean parseNMEASentence(String s, NmeaReader.NMEAParserState ps) throws IllegalDataException
IllegalDataExceptionprivate static LatLon parseLatLon(String ns, String ew, String dlat, String dlon) throws NumberFormatException
NumberFormatException