On 3/10/07, Coding Horse <[EMAIL PROTECTED]> wrote:


In mina trunk, the javadoc of class ByteBuffer has an example like:

String greeting = messageBundle.getMessage( "hello" );
ByteBuffer buf = ByteBuffer.allocate( 16 );
// Turn on autoExpand (it is off by default)
buf.setAutoExpand( true );
buf.putString( greeting, utf8encoder );

However the method putString doesn't accept param of type String.

Did I missing anything?


String implements CharSequenece, and therefore, the example code works fine.

Did you try to run the code by yourself?  Please let me know if it doesn't
work.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to