From a6b06189ea0f1b5a68c9cab49d50eccd98328bfa Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 16 Oct 2015 09:44:03 +1300 Subject: Use UDP protocol for GPSMTA --- src/org/traccar/helper/Parser.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/org/traccar/helper') 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()); -- cgit v1.2.3