diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-16 09:44:03 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-16 09:44:03 +1300 |
commit | a6b06189ea0f1b5a68c9cab49d50eccd98328bfa (patch) | |
tree | 2de173652f1ac0b0036181ed8acef5cc9d03a4ab /src/org/traccar/helper/Parser.java | |
parent | 9d159c880ab0fdb3f6f632dcb80577c6c2fb2f11 (diff) | |
download | trackermap-server-a6b06189ea0f1b5a68c9cab49d50eccd98328bfa.tar.gz trackermap-server-a6b06189ea0f1b5a68c9cab49d50eccd98328bfa.tar.bz2 trackermap-server-a6b06189ea0f1b5a68c9cab49d50eccd98328bfa.zip |
Use UDP protocol for GPSMTA
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 2fd615ca5..107ae7bff 100644 --- a/src/org/traccar/helper/Parser.java +++ b/src/org/traccar/helper/Parser.java @@ -62,6 +62,14 @@ public class Parser { } } + public long nextLong() { + if (hasNext()) { + return Long.parseLong(next()); + } else { + return 0; + } + } + public double nextDouble() { if (hasNext()) { return Double.parseDouble(next()); |