diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-27 12:27:53 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-27 12:27:53 -0700 |
commit | 2204c9830058fe33a4bf426636468a9ec0749a83 (patch) | |
tree | 9dbb7c37cb8737ea03bd56bf649e93f8e803941d /src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java | |
parent | 5b262c14aaf48919232abe9c41cb0d3288e56427 (diff) | |
download | trackermap-server-2204c9830058fe33a4bf426636468a9ec0749a83.tar.gz trackermap-server-2204c9830058fe33a4bf426636468a9ec0749a83.tar.bz2 trackermap-server-2204c9830058fe33a4bf426636468a9ec0749a83.zip |
Add custom frame decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java index c469025c2..bdcc12c4c 100644 --- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java @@ -95,7 +95,7 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder { private BitSet bits; - private static int getItemLength(int id) { + public static int getItemLength(int id) { Integer length = ITEM_LENGTH_MAP.get(id); if (length == null) { throw new IllegalArgumentException(String.format("Unknown item: %d", id)); @@ -103,6 +103,10 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder { return length; } + public BitSet getBits() { + return bits; + } + private void sendResponse( Channel channel, SocketAddress remoteAddress, int receiver, int sender, ByteBuf content) { if (channel != null) { |