Does StringTokenizer have any max length on tokens?
<p>I have a piece of code that has been working for years until today. After debugging I realized that last token it not collected correctly. I think is because of his length (more than 10k chars).</p>

<p>Code:</p>

<pre><code>StringTokenizer tokens = new StringTokenizer(myString,"&amp;&amp;&amp;&amp;&amp;&amp;&amp;"); 
(...)
String s=tokens.nextToken();
//Do something with s
s=tokens.nextToken();
//Do something with s
s=tokens.nextToken();
//Do something with s

//Now it's time of last and biggest token
s=tokens.nextToken(); // --&gt; s does not contain entire string
</code></pre>