diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-25 12:02:40 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-25 12:02:40 +1300 |
commit | 943ed449bb3862c8e3c380d51675d20ac4806cf3 (patch) | |
tree | 085fe228a9fc19842a339563e8acd1e7879814c8 /src/org/traccar/helper/Parser.java | |
parent | e273bf603317165d4ef43f302a7a9066b050bc8f (diff) | |
download | trackermap-server-943ed449bb3862c8e3c380d51675d20ac4806cf3.tar.gz trackermap-server-943ed449bb3862c8e3c380d51675d20ac4806cf3.tar.bz2 trackermap-server-943ed449bb3862c8e3c380d51675d20ac4806cf3.zip |
Refactor H02 protocol decoder
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; } |