Add javadocs

This commit is contained in:
Norman Maurer 2013-06-28 20:28:29 +02:00
parent 613547b0b9
commit e234abdbf7
2 changed files with 18 additions and 0 deletions

View File

@ -87,8 +87,19 @@ public abstract class ByteToMessageCodec<I> extends ChannelDuplexHandler {
encoder.write(ctx, msgs, promise);
}
/**
* @see MessageToByteEncoder#encode(ChannelHandlerContext, Object, ByteBuf)
*/
protected abstract void encode(ChannelHandlerContext ctx, I msg, ByteBuf out) throws Exception;
/**
* @see ByteToMessageDecoder#decode(ChannelHandlerContext, ByteBuf, MessageList)
*/
protected abstract void decode(ChannelHandlerContext ctx, ByteBuf in, MessageList<Object> out) throws Exception;
/**
* @see ByteToMessageDecoder#decodeLast(ChannelHandlerContext, ByteBuf, MessageList)
*/
protected void decodeLast(ChannelHandlerContext ctx, ByteBuf in, MessageList<Object> out) throws Exception {
decode(ctx, in, out);
}

View File

@ -123,8 +123,15 @@ public abstract class MessageToMessageCodec<INBOUND_IN, OUTBOUND_IN> extends Cha
return outboundMsgMatcher.match(msg);
}
/**
* @see MessageToMessageEncoder#encode(ChannelHandlerContext, Object, MessageList)
*/
protected abstract void encode(ChannelHandlerContext ctx, OUTBOUND_IN msg, MessageList<Object> out)
throws Exception;
/**
* @see MessageToMessageDecoder#decode(ChannelHandlerContext, Object, MessageList)
*/
protected abstract void decode(ChannelHandlerContext ctx, INBOUND_IN msg, MessageList<Object> out)
throws Exception;
}