diff options
Diffstat (limited to 'src/org/traccar/helper/Parser.java')
-rw-r--r-- | src/org/traccar/helper/Parser.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Parser.java b/src/org/traccar/helper/Parser.java index 7c15c0323..9f24cacd0 100644 --- a/src/org/traccar/helper/Parser.java +++ b/src/org/traccar/helper/Parser.java @@ -67,8 +67,12 @@ public class Parser { } public long nextLong() { + return nextLong(10); + } + + public long nextLong(int radix) { if (hasNext()) { - return Long.parseLong(next()); + return Long.parseLong(next(), radix); } else { return 0; } |