diff options
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()); |