Add missing decodeLast()
This commit is contained in:
parent
b58a8f0106
commit
ef692b0c38
@ -67,11 +67,14 @@ public abstract class ByteToByteCodec
|
||||
|
||||
private final ByteToByteDecoder decoder = new ByteToByteDecoder() {
|
||||
@Override
|
||||
public void decode(
|
||||
ChannelHandlerContext ctx,
|
||||
ByteBuf in, ByteBuf out) throws Exception {
|
||||
public void decode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception {
|
||||
ByteToByteCodec.this.decode(ctx, in, out);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void decodeLast(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception {
|
||||
ByteToByteCodec.this.decodeLast(ctx, in, out);
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -118,14 +121,17 @@ public abstract class ByteToByteCodec
|
||||
/**
|
||||
* @see {@link ByteToByteEncoder#encode(ChannelHandlerContext, ByteBuf, ByteBuf)}
|
||||
*/
|
||||
protected abstract void encode(
|
||||
ChannelHandlerContext ctx,
|
||||
ByteBuf in, ByteBuf out) throws Exception;
|
||||
protected abstract void encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception;
|
||||
|
||||
/**
|
||||
* @see {@link ByteToByteDecoder#decode(ChannelHandlerContext, ByteBuf, ByteBuf)}
|
||||
*/
|
||||
protected abstract void decode(
|
||||
ChannelHandlerContext ctx,
|
||||
ByteBuf in, ByteBuf out) throws Exception;
|
||||
protected abstract void decode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception;
|
||||
|
||||
/**
|
||||
* @see {@link ByteToByteDecoder#decodeLast(ChannelHandlerContext, ByteBuf, ByteBuf)}
|
||||
*/
|
||||
protected void decodeLast(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception {
|
||||
decode(ctx, in, out);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user