<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using Auto expanding and shrinking IoBuffer in Apache MINA</title>
	<atom:link href="http://www.ashishpaliwal.com/blog/2008/12/using-auto-expanding-and-shrinking-iobuffer-in-apache-mina/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ashishpaliwal.com/blog/2008/12/using-auto-expanding-and-shrinking-iobuffer-in-apache-mina/</link>
	<description>From Programmer, For Programmers</description>
	<lastBuildDate>Mon, 09 Jan 2012 04:02:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Thomas</title>
		<link>http://www.ashishpaliwal.com/blog/2008/12/using-auto-expanding-and-shrinking-iobuffer-in-apache-mina/comment-page-1/#comment-25945</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sat, 15 Jan 2011 18:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=224#comment-25945</guid>
		<description>Hello, I&#039;ve enjoyed reading your blog. While reading your example about expanding buffers. I questioned my self how can I read out the 2 values: buffer.putString(&quot;12345678&quot;, encoder); buffer.put((byte)10);

I tried it the following way: 

		IoBuffer buffer = IoBuffer.allocate(8);
		buffer.setAutoExpand(true);
		buffer.putInt(1);
		buffer.putString(&quot;xxx&quot;,encoder );

System.out.println(buffer.getInt(0)+&quot;: &quot;);
System.out.println(buffer.getString(decoder);

This doesn&#039;t produce the right outcome. It only shows the int. In the MINA docs I didn&#039;t find anything to help me.

Thanks</description>
		<content:encoded><![CDATA[<p>Hello, I&#8217;ve enjoyed reading your blog. While reading your example about expanding buffers. I questioned my self how can I read out the 2 values: buffer.putString(&#8220;12345678&#8243;, encoder); buffer.put((byte)10);</p>
<p>I tried it the following way: </p>
<p>		IoBuffer buffer = IoBuffer.allocate(8);<br />
		buffer.setAutoExpand(true);<br />
		buffer.putInt(1);<br />
		buffer.putString(&#8220;xxx&#8221;,encoder );</p>
<p>System.out.println(buffer.getInt(0)+&#8221;: &#8220;);<br />
System.out.println(buffer.getString(decoder);</p>
<p>This doesn&#8217;t produce the right outcome. It only shows the int. In the MINA docs I didn&#8217;t find anything to help me.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

