aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-25 12:02:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-25 12:02:40 +1300
commit943ed449bb3862c8e3c380d51675d20ac4806cf3 (patch)
tree085fe228a9fc19842a339563e8acd1e7879814c8 /src/org/traccar/helper
parente273bf603317165d4ef43f302a7a9066b050bc8f (diff)
downloadtraccar-server-943ed449bb3862c8e3c380d51675d20ac4806cf3.tar.gz
traccar-server-943ed449bb3862c8e3c380d51675d20ac4806cf3.tar.bz2
traccar-server-943ed449bb3862c8e3c380d51675d20ac4806cf3.zip
Refactor H02 protocol decoder
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/Parser.java6
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;
}