diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-05 23:16:21 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-05 23:16:21 +1200 |
commit | 9c99076dc2416c4e0725007af0e5f2f2f444c05c (patch) | |
tree | 55068f2ab5dbe99fcd60acc01c1bb05fc365aa43 /src/org/traccar/protocol/AutoFonFrameDecoder.java | |
parent | b8f4fc8888aaad7fe384c1dc2b80f44c1683bb03 (diff) | |
download | trackermap-server-9c99076dc2416c4e0725007af0e5f2f2f444c05c.tar.gz trackermap-server-9c99076dc2416c4e0725007af0e5f2f2f444c05c.tar.bz2 trackermap-server-9c99076dc2416c4e0725007af0e5f2f2f444c05c.zip |
Migrate more protocols
Diffstat (limited to 'src/org/traccar/protocol/AutoFonFrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AutoFonFrameDecoder.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/AutoFonFrameDecoder.java b/src/org/traccar/protocol/AutoFonFrameDecoder.java index 2fa1b4072..517f4b124 100644 --- a/src/org/traccar/protocol/AutoFonFrameDecoder.java +++ b/src/org/traccar/protocol/AutoFonFrameDecoder.java @@ -16,18 +16,16 @@ */ package org.traccar.protocol; -import org.jboss.netty.buffer.ChannelBuffer; -import org.jboss.netty.channel.Channel; -import org.jboss.netty.channel.ChannelHandlerContext; -import org.jboss.netty.handler.codec.frame.FrameDecoder; +import io.netty.buffer.ByteBuf; +import io.netty.channel.Channel; +import io.netty.channel.ChannelHandlerContext; +import org.traccar.BaseFrameDecoder; -public class AutoFonFrameDecoder extends FrameDecoder { +public class AutoFonFrameDecoder extends BaseFrameDecoder { @Override protected Object decode( - ChannelHandlerContext ctx, - Channel channel, - ChannelBuffer buf) throws Exception { + ChannelHandlerContext ctx, Channel channel, ByteBuf buf) throws Exception { // Check minimum length if (buf.readableBytes() < 12) { |