diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-26 17:06:43 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-26 17:07:00 +1200 |
commit | 1f3185d8a06f5d8cd3c05c15cbb7abbbfa81af37 (patch) | |
tree | f45f77fc14943215dd6112bf10decd7e5cb90ee9 /src/org/traccar/helper/Parser.java | |
parent | 1669e9c453f6bf2add655bbb2cf48b68bbbfb503 (diff) | |
download | trackermap-server-1f3185d8a06f5d8cd3c05c15cbb7abbbfa81af37.tar.gz trackermap-server-1f3185d8a06f5d8cd3c05c15cbb7abbbfa81af37.tar.bz2 trackermap-server-1f3185d8a06f5d8cd3c05c15cbb7abbbfa81af37.zip |
Implement additional Xirgo attributes
Diffstat (limited to 'src/org/traccar/helper/Parser.java')
-rw-r--r-- | src/org/traccar/helper/Parser.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/helper/Parser.java b/src/org/traccar/helper/Parser.java index 69c80adb2..582b497cf 100644 --- a/src/org/traccar/helper/Parser.java +++ b/src/org/traccar/helper/Parser.java @@ -121,6 +121,14 @@ public class Parser { } } + public Double nextDouble() { + if (hasNext()) { + return Double.parseDouble(next()); + } else { + return null; + } + } + public double nextDouble(double defaultValue) { if (hasNext()) { return Double.parseDouble(next()); |