aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-16 09:44:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-16 09:44:03 +1300
commita6b06189ea0f1b5a68c9cab49d50eccd98328bfa (patch)
tree2de173652f1ac0b0036181ed8acef5cc9d03a4ab /src/org/traccar/helper
parent9d159c880ab0fdb3f6f632dcb80577c6c2fb2f11 (diff)
downloadtrackermap-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')
-rw-r--r--src/org/traccar/helper/Parser.java8
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());