I guess you can do the same using CodecEmbedder<br><br><div class="gmail_quote">On Thu, May 26, 2011 at 10:07 PM, Abraham Menacherry <span dir="ltr">&lt;<a href="mailto:abrahammenacherry@gmail.com">abrahammenacherry@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Bruno,<br>
<br>
I am not asking to make the existing protected method public, but to add a<br>
new public method which does not take channel handler ctx parameter.<br>
<br>
This in my opinion will provide the easiest re-use of Netty provided coders<br>
outside a channel handler context. No need to make any additional classes<br>
from user perspective.<br>
<br>
For e.g. StringEncoder encoder = new StringEncoder()<br>
ChannelBuffer buffer = encoder.encode(&quot;MyString&quot;);<br>
Thanks,<br>
Abraham.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-codecs-have-protected-method-preventing-easy-reuse-outside-pipeline-tp6380824p6407728.html" target="_blank">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-codecs-have-protected-method-preventing-easy-reuse-outside-pipeline-tp6380824p6407728.html</a><br>

</font><div><div></div><div class="h5">Sent from the Netty User Group mailing list archive at Nabble.com.<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</div></div></blockquote></div><br>