aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
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());