commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject svn commit: r1005408 [24/29] - in /websites/production/commons/content/proper/commons-text: ./ apidocs/ apidocs/org/apache/commons/text/ apidocs/org/apache/commons/text/translate/ apidocs/org/apache/commons/text/translate/class-use/ apidocs/src-html/or...
Date Mon, 23 Jan 2017 12:35:15 GMT
Modified: websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/StrTokenizerTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/StrTokenizerTest.html (original)
+++ websites/production/commons/content/proper/commons-text/xref-test/org/apache/commons/text/StrTokenizerTest.html Mon Jan 23 12:35:12 2017
@@ -302,587 +302,623 @@
 <a class="jxr_linenumber" name="L294" href="#L294">294</a>     }
 <a class="jxr_linenumber" name="L295" href="#L295">295</a> 
 <a class="jxr_linenumber" name="L296" href="#L296">296</a>     @Test
-<a class="jxr_linenumber" name="L297" href="#L297">297</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicEmpty1() {
-<a class="jxr_linenumber" name="L298" href="#L298">298</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a  b c"</span>;
-<a class="jxr_linenumber" name="L299" href="#L299">299</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
-<a class="jxr_linenumber" name="L300" href="#L300">300</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L297" href="#L297">297</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDelimString() {
+<a class="jxr_linenumber" name="L298" href="#L298">298</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a##b##c"</span>;
+<a class="jxr_linenumber" name="L299" href="#L299">299</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, <span class="jxr_string">"##"</span>);
+<a class="jxr_linenumber" name="L300" href="#L300">300</a> 
 <a class="jxr_linenumber" name="L301" href="#L301">301</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L302" href="#L302">302</a>         assertEquals(<span class="jxr_string">""</span>, tok.next());
-<a class="jxr_linenumber" name="L303" href="#L303">303</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L304" href="#L304">304</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
-<a class="jxr_linenumber" name="L305" href="#L305">305</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L306" href="#L306">306</a>     }
-<a class="jxr_linenumber" name="L307" href="#L307">307</a> 
-<a class="jxr_linenumber" name="L308" href="#L308">308</a>     @Test
-<a class="jxr_linenumber" name="L309" href="#L309">309</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicEmpty2() {
-<a class="jxr_linenumber" name="L310" href="#L310">310</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a  b c"</span>;
-<a class="jxr_linenumber" name="L311" href="#L311">311</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
-<a class="jxr_linenumber" name="L312" href="#L312">312</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L313" href="#L313">313</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L314" href="#L314">314</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L315" href="#L315">315</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
-<a class="jxr_linenumber" name="L316" href="#L316">316</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L317" href="#L317">317</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
-<a class="jxr_linenumber" name="L318" href="#L318">318</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L319" href="#L319">319</a>     }
-<a class="jxr_linenumber" name="L320" href="#L320">320</a> 
-<a class="jxr_linenumber" name="L321" href="#L321">321</a>     @Test
-<a class="jxr_linenumber" name="L322" href="#L322">322</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted1() {
-<a class="jxr_linenumber" name="L323" href="#L323">323</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a 'b' c"</span>;
-<a class="jxr_linenumber" name="L324" href="#L324">324</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ' ', '\'');
-<a class="jxr_linenumber" name="L325" href="#L325">325</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L326" href="#L326">326</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L327" href="#L327">327</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
-<a class="jxr_linenumber" name="L328" href="#L328">328</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L329" href="#L329">329</a>     }
-<a class="jxr_linenumber" name="L330" href="#L330">330</a> 
-<a class="jxr_linenumber" name="L331" href="#L331">331</a>     @Test
-<a class="jxr_linenumber" name="L332" href="#L332">332</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted2() {
-<a class="jxr_linenumber" name="L333" href="#L333">333</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:'b':"</span>;
-<a class="jxr_linenumber" name="L334" href="#L334">334</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
-<a class="jxr_linenumber" name="L335" href="#L335">335</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L336" href="#L336">336</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L302" href="#L302">302</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L303" href="#L303">303</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
+<a class="jxr_linenumber" name="L304" href="#L304">304</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L305" href="#L305">305</a>     }
+<a class="jxr_linenumber" name="L306" href="#L306">306</a> 
+<a class="jxr_linenumber" name="L307" href="#L307">307</a>     @Test
+<a class="jxr_linenumber" name="L308" href="#L308">308</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDelimMatcher() {
+<a class="jxr_linenumber" name="L309" href="#L309">309</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a/b&#92;&#92;c"</span>;
+<a class="jxr_linenumber" name="L310" href="#L310">310</a>         <strong class="jxr_keyword">final</strong> StrMatcher delimMatcher = <strong class="jxr_keyword">new</strong> StrMatcher.CharSetMatcher(<strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[]{'/', '&#92;&#92;'});
+<a class="jxr_linenumber" name="L311" href="#L311">311</a> 
+<a class="jxr_linenumber" name="L312" href="#L312">312</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, delimMatcher);
+<a class="jxr_linenumber" name="L313" href="#L313">313</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L314" href="#L314">314</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L315" href="#L315">315</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
+<a class="jxr_linenumber" name="L316" href="#L316">316</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L317" href="#L317">317</a>     }
+<a class="jxr_linenumber" name="L318" href="#L318">318</a> 
+<a class="jxr_linenumber" name="L319" href="#L319">319</a>     @Test
+<a class="jxr_linenumber" name="L320" href="#L320">320</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDelimMatcherQuoteMatcher() {
+<a class="jxr_linenumber" name="L321" href="#L321">321</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"`a`;`b`;`c`"</span>;
+<a class="jxr_linenumber" name="L322" href="#L322">322</a>         <strong class="jxr_keyword">final</strong> StrMatcher delimMatcher = <strong class="jxr_keyword">new</strong> StrMatcher.CharSetMatcher(<strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[]{';'});
+<a class="jxr_linenumber" name="L323" href="#L323">323</a>         <strong class="jxr_keyword">final</strong> StrMatcher quoteMatcher = <strong class="jxr_keyword">new</strong> StrMatcher.CharSetMatcher(<strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[]{'`'});
+<a class="jxr_linenumber" name="L324" href="#L324">324</a> 
+<a class="jxr_linenumber" name="L325" href="#L325">325</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, delimMatcher, quoteMatcher);
+<a class="jxr_linenumber" name="L326" href="#L326">326</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L327" href="#L327">327</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L328" href="#L328">328</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
+<a class="jxr_linenumber" name="L329" href="#L329">329</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L330" href="#L330">330</a>     }
+<a class="jxr_linenumber" name="L331" href="#L331">331</a> 
+<a class="jxr_linenumber" name="L332" href="#L332">332</a>     @Test
+<a class="jxr_linenumber" name="L333" href="#L333">333</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicEmpty1() {
+<a class="jxr_linenumber" name="L334" href="#L334">334</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a  b c"</span>;
+<a class="jxr_linenumber" name="L335" href="#L335">335</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
+<a class="jxr_linenumber" name="L336" href="#L336">336</a>         tok.setIgnoreEmptyTokens(false);
 <a class="jxr_linenumber" name="L337" href="#L337">337</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L338" href="#L338">338</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L339" href="#L339">339</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
-<a class="jxr_linenumber" name="L340" href="#L340">340</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L341" href="#L341">341</a>     }
-<a class="jxr_linenumber" name="L342" href="#L342">342</a> 
-<a class="jxr_linenumber" name="L343" href="#L343">343</a>     @Test
-<a class="jxr_linenumber" name="L344" href="#L344">344</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted3() {
-<a class="jxr_linenumber" name="L345" href="#L345">345</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:'b''c'"</span>;
-<a class="jxr_linenumber" name="L346" href="#L346">346</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
-<a class="jxr_linenumber" name="L347" href="#L347">347</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L348" href="#L348">348</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L349" href="#L349">349</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L350" href="#L350">350</a>         assertEquals(<span class="jxr_string">"b'c"</span>, tok.next());
-<a class="jxr_linenumber" name="L351" href="#L351">351</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L352" href="#L352">352</a>     }
-<a class="jxr_linenumber" name="L353" href="#L353">353</a> 
-<a class="jxr_linenumber" name="L354" href="#L354">354</a>     @Test
-<a class="jxr_linenumber" name="L355" href="#L355">355</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted4() {
-<a class="jxr_linenumber" name="L356" href="#L356">356</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: 'b' 'c' :d"</span>;
-<a class="jxr_linenumber" name="L357" href="#L357">357</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
-<a class="jxr_linenumber" name="L358" href="#L358">358</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
-<a class="jxr_linenumber" name="L359" href="#L359">359</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L360" href="#L360">360</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L338" href="#L338">338</a>         assertEquals(<span class="jxr_string">""</span>, tok.next());
+<a class="jxr_linenumber" name="L339" href="#L339">339</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L340" href="#L340">340</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
+<a class="jxr_linenumber" name="L341" href="#L341">341</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L342" href="#L342">342</a>     }
+<a class="jxr_linenumber" name="L343" href="#L343">343</a> 
+<a class="jxr_linenumber" name="L344" href="#L344">344</a>     @Test
+<a class="jxr_linenumber" name="L345" href="#L345">345</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicEmpty2() {
+<a class="jxr_linenumber" name="L346" href="#L346">346</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a  b c"</span>;
+<a class="jxr_linenumber" name="L347" href="#L347">347</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
+<a class="jxr_linenumber" name="L348" href="#L348">348</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L349" href="#L349">349</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L350" href="#L350">350</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L351" href="#L351">351</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
+<a class="jxr_linenumber" name="L352" href="#L352">352</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L353" href="#L353">353</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
+<a class="jxr_linenumber" name="L354" href="#L354">354</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L355" href="#L355">355</a>     }
+<a class="jxr_linenumber" name="L356" href="#L356">356</a> 
+<a class="jxr_linenumber" name="L357" href="#L357">357</a>     @Test
+<a class="jxr_linenumber" name="L358" href="#L358">358</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted1() {
+<a class="jxr_linenumber" name="L359" href="#L359">359</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a 'b' c"</span>;
+<a class="jxr_linenumber" name="L360" href="#L360">360</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ' ', '\'');
 <a class="jxr_linenumber" name="L361" href="#L361">361</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L362" href="#L362">362</a>         assertEquals(<span class="jxr_string">"b c"</span>, tok.next());
-<a class="jxr_linenumber" name="L363" href="#L363">363</a>         assertEquals(<span class="jxr_string">"d"</span>, tok.next());
+<a class="jxr_linenumber" name="L362" href="#L362">362</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L363" href="#L363">363</a>         assertEquals(<span class="jxr_string">"c"</span>, tok.next());
 <a class="jxr_linenumber" name="L364" href="#L364">364</a>         assertFalse(tok.hasNext());
 <a class="jxr_linenumber" name="L365" href="#L365">365</a>     }
 <a class="jxr_linenumber" name="L366" href="#L366">366</a> 
 <a class="jxr_linenumber" name="L367" href="#L367">367</a>     @Test
-<a class="jxr_linenumber" name="L368" href="#L368">368</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted5() {
-<a class="jxr_linenumber" name="L369" href="#L369">369</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: 'b'x'c' :d"</span>;
+<a class="jxr_linenumber" name="L368" href="#L368">368</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted2() {
+<a class="jxr_linenumber" name="L369" href="#L369">369</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:'b':"</span>;
 <a class="jxr_linenumber" name="L370" href="#L370">370</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
-<a class="jxr_linenumber" name="L371" href="#L371">371</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
-<a class="jxr_linenumber" name="L372" href="#L372">372</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L373" href="#L373">373</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L374" href="#L374">374</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L375" href="#L375">375</a>         assertEquals(<span class="jxr_string">"bxc"</span>, tok.next());
-<a class="jxr_linenumber" name="L376" href="#L376">376</a>         assertEquals(<span class="jxr_string">"d"</span>, tok.next());
-<a class="jxr_linenumber" name="L377" href="#L377">377</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L378" href="#L378">378</a>     }
-<a class="jxr_linenumber" name="L379" href="#L379">379</a> 
-<a class="jxr_linenumber" name="L380" href="#L380">380</a>     @Test
-<a class="jxr_linenumber" name="L381" href="#L381">381</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted6() {
-<a class="jxr_linenumber" name="L382" href="#L382">382</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:'b'\&quot;c':d"</span>;
-<a class="jxr_linenumber" name="L383" href="#L383">383</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
-<a class="jxr_linenumber" name="L384" href="#L384">384</a>         tok.setQuoteMatcher(StrMatcher.quoteMatcher());
+<a class="jxr_linenumber" name="L371" href="#L371">371</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L372" href="#L372">372</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L373" href="#L373">373</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L374" href="#L374">374</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L375" href="#L375">375</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
+<a class="jxr_linenumber" name="L376" href="#L376">376</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L377" href="#L377">377</a>     }
+<a class="jxr_linenumber" name="L378" href="#L378">378</a> 
+<a class="jxr_linenumber" name="L379" href="#L379">379</a>     @Test
+<a class="jxr_linenumber" name="L380" href="#L380">380</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted3() {
+<a class="jxr_linenumber" name="L381" href="#L381">381</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:'b''c'"</span>;
+<a class="jxr_linenumber" name="L382" href="#L382">382</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
+<a class="jxr_linenumber" name="L383" href="#L383">383</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L384" href="#L384">384</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
 <a class="jxr_linenumber" name="L385" href="#L385">385</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L386" href="#L386">386</a>         assertEquals(<span class="jxr_string">"b\&quot;c:d"</span>, tok.next());
+<a class="jxr_linenumber" name="L386" href="#L386">386</a>         assertEquals(<span class="jxr_string">"b'c"</span>, tok.next());
 <a class="jxr_linenumber" name="L387" href="#L387">387</a>         assertFalse(tok.hasNext());
 <a class="jxr_linenumber" name="L388" href="#L388">388</a>     }
 <a class="jxr_linenumber" name="L389" href="#L389">389</a> 
 <a class="jxr_linenumber" name="L390" href="#L390">390</a>     @Test
-<a class="jxr_linenumber" name="L391" href="#L391">391</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted7() {
-<a class="jxr_linenumber" name="L392" href="#L392">392</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:\&quot;There's a reason here\&quot;:b"</span>;
-<a class="jxr_linenumber" name="L393" href="#L393">393</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
-<a class="jxr_linenumber" name="L394" href="#L394">394</a>         tok.setQuoteMatcher(StrMatcher.quoteMatcher());
-<a class="jxr_linenumber" name="L395" href="#L395">395</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L396" href="#L396">396</a>         assertEquals(<span class="jxr_string">"There's a reason here"</span>, tok.next());
-<a class="jxr_linenumber" name="L397" href="#L397">397</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L398" href="#L398">398</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L399" href="#L399">399</a>     }
-<a class="jxr_linenumber" name="L400" href="#L400">400</a> 
-<a class="jxr_linenumber" name="L401" href="#L401">401</a>     @Test
-<a class="jxr_linenumber" name="L402" href="#L402">402</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuotedTrimmed1() {
-<a class="jxr_linenumber" name="L403" href="#L403">403</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: 'b' :"</span>;
-<a class="jxr_linenumber" name="L404" href="#L404">404</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
-<a class="jxr_linenumber" name="L405" href="#L405">405</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
-<a class="jxr_linenumber" name="L406" href="#L406">406</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L407" href="#L407">407</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L408" href="#L408">408</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L409" href="#L409">409</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L410" href="#L410">410</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
-<a class="jxr_linenumber" name="L411" href="#L411">411</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L412" href="#L412">412</a>     }
-<a class="jxr_linenumber" name="L413" href="#L413">413</a> 
-<a class="jxr_linenumber" name="L414" href="#L414">414</a>     @Test
-<a class="jxr_linenumber" name="L415" href="#L415">415</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicTrimmed1() {
-<a class="jxr_linenumber" name="L416" href="#L416">416</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: b :  "</span>;
-<a class="jxr_linenumber" name="L417" href="#L417">417</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
-<a class="jxr_linenumber" name="L418" href="#L418">418</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
-<a class="jxr_linenumber" name="L419" href="#L419">419</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L420" href="#L420">420</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L391" href="#L391">391</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted4() {
+<a class="jxr_linenumber" name="L392" href="#L392">392</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: 'b' 'c' :d"</span>;
+<a class="jxr_linenumber" name="L393" href="#L393">393</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
+<a class="jxr_linenumber" name="L394" href="#L394">394</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
+<a class="jxr_linenumber" name="L395" href="#L395">395</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L396" href="#L396">396</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L397" href="#L397">397</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L398" href="#L398">398</a>         assertEquals(<span class="jxr_string">"b c"</span>, tok.next());
+<a class="jxr_linenumber" name="L399" href="#L399">399</a>         assertEquals(<span class="jxr_string">"d"</span>, tok.next());
+<a class="jxr_linenumber" name="L400" href="#L400">400</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L401" href="#L401">401</a>     }
+<a class="jxr_linenumber" name="L402" href="#L402">402</a> 
+<a class="jxr_linenumber" name="L403" href="#L403">403</a>     @Test
+<a class="jxr_linenumber" name="L404" href="#L404">404</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted5() {
+<a class="jxr_linenumber" name="L405" href="#L405">405</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: 'b'x'c' :d"</span>;
+<a class="jxr_linenumber" name="L406" href="#L406">406</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
+<a class="jxr_linenumber" name="L407" href="#L407">407</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
+<a class="jxr_linenumber" name="L408" href="#L408">408</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L409" href="#L409">409</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L410" href="#L410">410</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L411" href="#L411">411</a>         assertEquals(<span class="jxr_string">"bxc"</span>, tok.next());
+<a class="jxr_linenumber" name="L412" href="#L412">412</a>         assertEquals(<span class="jxr_string">"d"</span>, tok.next());
+<a class="jxr_linenumber" name="L413" href="#L413">413</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L414" href="#L414">414</a>     }
+<a class="jxr_linenumber" name="L415" href="#L415">415</a> 
+<a class="jxr_linenumber" name="L416" href="#L416">416</a>     @Test
+<a class="jxr_linenumber" name="L417" href="#L417">417</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted6() {
+<a class="jxr_linenumber" name="L418" href="#L418">418</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:'b'\&quot;c':d"</span>;
+<a class="jxr_linenumber" name="L419" href="#L419">419</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
+<a class="jxr_linenumber" name="L420" href="#L420">420</a>         tok.setQuoteMatcher(StrMatcher.quoteMatcher());
 <a class="jxr_linenumber" name="L421" href="#L421">421</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L422" href="#L422">422</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L423" href="#L423">423</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
-<a class="jxr_linenumber" name="L424" href="#L424">424</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L425" href="#L425">425</a>     }
-<a class="jxr_linenumber" name="L426" href="#L426">426</a> 
-<a class="jxr_linenumber" name="L427" href="#L427">427</a>     @Test
-<a class="jxr_linenumber" name="L428" href="#L428">428</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicTrimmed2() {
-<a class="jxr_linenumber" name="L429" href="#L429">429</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:  b  :"</span>;
-<a class="jxr_linenumber" name="L430" href="#L430">430</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
-<a class="jxr_linenumber" name="L431" href="#L431">431</a>         tok.setTrimmerMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"  "</span>));
-<a class="jxr_linenumber" name="L432" href="#L432">432</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L433" href="#L433">433</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L434" href="#L434">434</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L435" href="#L435">435</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L436" href="#L436">436</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
-<a class="jxr_linenumber" name="L437" href="#L437">437</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L438" href="#L438">438</a>     }
-<a class="jxr_linenumber" name="L439" href="#L439">439</a> 
-<a class="jxr_linenumber" name="L440" href="#L440">440</a>     @Test
-<a class="jxr_linenumber" name="L441" href="#L441">441</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicIgnoreTrimmed1() {
-<a class="jxr_linenumber" name="L442" href="#L442">442</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: bIGNOREc : "</span>;
-<a class="jxr_linenumber" name="L443" href="#L443">443</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
-<a class="jxr_linenumber" name="L444" href="#L444">444</a>         tok.setIgnoredMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"IGNORE"</span>));
-<a class="jxr_linenumber" name="L445" href="#L445">445</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
-<a class="jxr_linenumber" name="L446" href="#L446">446</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L447" href="#L447">447</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L448" href="#L448">448</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L449" href="#L449">449</a>         assertEquals(<span class="jxr_string">"bc"</span>, tok.next());
-<a class="jxr_linenumber" name="L450" href="#L450">450</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
-<a class="jxr_linenumber" name="L451" href="#L451">451</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L452" href="#L452">452</a>     }
-<a class="jxr_linenumber" name="L453" href="#L453">453</a> 
-<a class="jxr_linenumber" name="L454" href="#L454">454</a>     @Test
-<a class="jxr_linenumber" name="L455" href="#L455">455</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicIgnoreTrimmed2() {
-<a class="jxr_linenumber" name="L456" href="#L456">456</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"IGNOREaIGNORE: IGNORE bIGNOREc IGNORE : IGNORE "</span>;
-<a class="jxr_linenumber" name="L457" href="#L457">457</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
-<a class="jxr_linenumber" name="L458" href="#L458">458</a>         tok.setIgnoredMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"IGNORE"</span>));
-<a class="jxr_linenumber" name="L459" href="#L459">459</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
-<a class="jxr_linenumber" name="L460" href="#L460">460</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L461" href="#L461">461</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L462" href="#L462">462</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L463" href="#L463">463</a>         assertEquals(<span class="jxr_string">"bc"</span>, tok.next());
-<a class="jxr_linenumber" name="L464" href="#L464">464</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
-<a class="jxr_linenumber" name="L465" href="#L465">465</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L466" href="#L466">466</a>     }
-<a class="jxr_linenumber" name="L467" href="#L467">467</a> 
-<a class="jxr_linenumber" name="L468" href="#L468">468</a>     @Test
-<a class="jxr_linenumber" name="L469" href="#L469">469</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicIgnoreTrimmed3() {
-<a class="jxr_linenumber" name="L470" href="#L470">470</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"IGNOREaIGNORE: IGNORE bIGNOREc IGNORE : IGNORE "</span>;
-<a class="jxr_linenumber" name="L471" href="#L471">471</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
-<a class="jxr_linenumber" name="L472" href="#L472">472</a>         tok.setIgnoredMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"IGNORE"</span>));
-<a class="jxr_linenumber" name="L473" href="#L473">473</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L474" href="#L474">474</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L475" href="#L475">475</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L476" href="#L476">476</a>         assertEquals(<span class="jxr_string">"  bc  "</span>, tok.next());
-<a class="jxr_linenumber" name="L477" href="#L477">477</a>         assertEquals(<span class="jxr_string">"  "</span>, tok.next());
-<a class="jxr_linenumber" name="L478" href="#L478">478</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L479" href="#L479">479</a>     }
-<a class="jxr_linenumber" name="L480" href="#L480">480</a> 
-<a class="jxr_linenumber" name="L481" href="#L481">481</a>     @Test
-<a class="jxr_linenumber" name="L482" href="#L482">482</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicIgnoreTrimmed4() {
-<a class="jxr_linenumber" name="L483" href="#L483">483</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"IGNOREaIGNORE: IGNORE 'bIGNOREc'IGNORE'd' IGNORE : IGNORE "</span>;
-<a class="jxr_linenumber" name="L484" href="#L484">484</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
-<a class="jxr_linenumber" name="L485" href="#L485">485</a>         tok.setIgnoredMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"IGNORE"</span>));
-<a class="jxr_linenumber" name="L486" href="#L486">486</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
-<a class="jxr_linenumber" name="L487" href="#L487">487</a>         tok.setIgnoreEmptyTokens(false);
-<a class="jxr_linenumber" name="L488" href="#L488">488</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L489" href="#L489">489</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L490" href="#L490">490</a>         assertEquals(<span class="jxr_string">"bIGNOREcd"</span>, tok.next());
-<a class="jxr_linenumber" name="L491" href="#L491">491</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
-<a class="jxr_linenumber" name="L492" href="#L492">492</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L493" href="#L493">493</a>     }
-<a class="jxr_linenumber" name="L494" href="#L494">494</a> 
-<a class="jxr_linenumber" name="L495" href="#L495">495</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L496" href="#L496">496</a>     @Test
-<a class="jxr_linenumber" name="L497" href="#L497">497</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testListArray() {
-<a class="jxr_linenumber" name="L498" href="#L498">498</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a  b c"</span>;
-<a class="jxr_linenumber" name="L499" href="#L499">499</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
-<a class="jxr_linenumber" name="L500" href="#L500">500</a>         <strong class="jxr_keyword">final</strong> String[] array = tok.getTokenArray();
-<a class="jxr_linenumber" name="L501" href="#L501">501</a>         <strong class="jxr_keyword">final</strong> List&lt;?&gt; list = tok.getTokenList();
-<a class="jxr_linenumber" name="L502" href="#L502">502</a>         
-<a class="jxr_linenumber" name="L503" href="#L503">503</a>         assertEquals(Arrays.asList(array), list);
-<a class="jxr_linenumber" name="L504" href="#L504">504</a>         assertEquals(3, list.size());
-<a class="jxr_linenumber" name="L505" href="#L505">505</a>     }
-<a class="jxr_linenumber" name="L506" href="#L506">506</a> 
-<a class="jxr_linenumber" name="L507" href="#L507">507</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L508" href="#L508">508</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> testCSV(<strong class="jxr_keyword">final</strong> String data) {
-<a class="jxr_linenumber" name="L509" href="#L509">509</a>         <strong class="jxr_keyword">this</strong>.testXSVAbc(StrTokenizer.getCSVInstance(data));
-<a class="jxr_linenumber" name="L510" href="#L510">510</a>         <strong class="jxr_keyword">this</strong>.testXSVAbc(StrTokenizer.getCSVInstance(data.toCharArray()));
-<a class="jxr_linenumber" name="L511" href="#L511">511</a>     }
-<a class="jxr_linenumber" name="L512" href="#L512">512</a> 
-<a class="jxr_linenumber" name="L513" href="#L513">513</a>     @Test
-<a class="jxr_linenumber" name="L514" href="#L514">514</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCSVEmpty() {
-<a class="jxr_linenumber" name="L515" href="#L515">515</a>         <strong class="jxr_keyword">this</strong>.testEmpty(StrTokenizer.getCSVInstance());
-<a class="jxr_linenumber" name="L516" href="#L516">516</a>         <strong class="jxr_keyword">this</strong>.testEmpty(StrTokenizer.getCSVInstance(<span class="jxr_string">""</span>));
-<a class="jxr_linenumber" name="L517" href="#L517">517</a>     }
-<a class="jxr_linenumber" name="L518" href="#L518">518</a> 
-<a class="jxr_linenumber" name="L519" href="#L519">519</a>     @Test
-<a class="jxr_linenumber" name="L520" href="#L520">520</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCSVSimple() {
-<a class="jxr_linenumber" name="L521" href="#L521">521</a>         <strong class="jxr_keyword">this</strong>.testCSV(CSV_SIMPLE_FIXTURE);
-<a class="jxr_linenumber" name="L522" href="#L522">522</a>     }
-<a class="jxr_linenumber" name="L523" href="#L523">523</a> 
-<a class="jxr_linenumber" name="L524" href="#L524">524</a>     @Test
-<a class="jxr_linenumber" name="L525" href="#L525">525</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCSVSimpleNeedsTrim() {
-<a class="jxr_linenumber" name="L526" href="#L526">526</a>         <strong class="jxr_keyword">this</strong>.testCSV(<span class="jxr_string">"   "</span> + CSV_SIMPLE_FIXTURE);
-<a class="jxr_linenumber" name="L527" href="#L527">527</a>         <strong class="jxr_keyword">this</strong>.testCSV(<span class="jxr_string">"   \n\t  "</span> + CSV_SIMPLE_FIXTURE);
-<a class="jxr_linenumber" name="L528" href="#L528">528</a>         <strong class="jxr_keyword">this</strong>.testCSV(<span class="jxr_string">"   \n  "</span> + CSV_SIMPLE_FIXTURE + <span class="jxr_string">"\n\n\r"</span>);
+<a class="jxr_linenumber" name="L422" href="#L422">422</a>         assertEquals(<span class="jxr_string">"b\&quot;c:d"</span>, tok.next());
+<a class="jxr_linenumber" name="L423" href="#L423">423</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L424" href="#L424">424</a>     }
+<a class="jxr_linenumber" name="L425" href="#L425">425</a> 
+<a class="jxr_linenumber" name="L426" href="#L426">426</a>     @Test
+<a class="jxr_linenumber" name="L427" href="#L427">427</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuoted7() {
+<a class="jxr_linenumber" name="L428" href="#L428">428</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:\&quot;There's a reason here\&quot;:b"</span>;
+<a class="jxr_linenumber" name="L429" href="#L429">429</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
+<a class="jxr_linenumber" name="L430" href="#L430">430</a>         tok.setQuoteMatcher(StrMatcher.quoteMatcher());
+<a class="jxr_linenumber" name="L431" href="#L431">431</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L432" href="#L432">432</a>         assertEquals(<span class="jxr_string">"There's a reason here"</span>, tok.next());
+<a class="jxr_linenumber" name="L433" href="#L433">433</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L434" href="#L434">434</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L435" href="#L435">435</a>     }
+<a class="jxr_linenumber" name="L436" href="#L436">436</a> 
+<a class="jxr_linenumber" name="L437" href="#L437">437</a>     @Test
+<a class="jxr_linenumber" name="L438" href="#L438">438</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicQuotedTrimmed1() {
+<a class="jxr_linenumber" name="L439" href="#L439">439</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: 'b' :"</span>;
+<a class="jxr_linenumber" name="L440" href="#L440">440</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
+<a class="jxr_linenumber" name="L441" href="#L441">441</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
+<a class="jxr_linenumber" name="L442" href="#L442">442</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L443" href="#L443">443</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L444" href="#L444">444</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L445" href="#L445">445</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L446" href="#L446">446</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
+<a class="jxr_linenumber" name="L447" href="#L447">447</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L448" href="#L448">448</a>     }
+<a class="jxr_linenumber" name="L449" href="#L449">449</a> 
+<a class="jxr_linenumber" name="L450" href="#L450">450</a>     @Test
+<a class="jxr_linenumber" name="L451" href="#L451">451</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicTrimmed1() {
+<a class="jxr_linenumber" name="L452" href="#L452">452</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: b :  "</span>;
+<a class="jxr_linenumber" name="L453" href="#L453">453</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
+<a class="jxr_linenumber" name="L454" href="#L454">454</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
+<a class="jxr_linenumber" name="L455" href="#L455">455</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L456" href="#L456">456</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L457" href="#L457">457</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L458" href="#L458">458</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L459" href="#L459">459</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
+<a class="jxr_linenumber" name="L460" href="#L460">460</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L461" href="#L461">461</a>     }
+<a class="jxr_linenumber" name="L462" href="#L462">462</a> 
+<a class="jxr_linenumber" name="L463" href="#L463">463</a>     @Test
+<a class="jxr_linenumber" name="L464" href="#L464">464</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicTrimmed2() {
+<a class="jxr_linenumber" name="L465" href="#L465">465</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a:  b  :"</span>;
+<a class="jxr_linenumber" name="L466" href="#L466">466</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
+<a class="jxr_linenumber" name="L467" href="#L467">467</a>         tok.setTrimmerMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"  "</span>));
+<a class="jxr_linenumber" name="L468" href="#L468">468</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L469" href="#L469">469</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L470" href="#L470">470</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L471" href="#L471">471</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
+<a class="jxr_linenumber" name="L472" href="#L472">472</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
+<a class="jxr_linenumber" name="L473" href="#L473">473</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L474" href="#L474">474</a>     }
+<a class="jxr_linenumber" name="L475" href="#L475">475</a> 
+<a class="jxr_linenumber" name="L476" href="#L476">476</a>     @Test
+<a class="jxr_linenumber" name="L477" href="#L477">477</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicIgnoreTrimmed1() {
+<a class="jxr_linenumber" name="L478" href="#L478">478</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a: bIGNOREc : "</span>;
+<a class="jxr_linenumber" name="L479" href="#L479">479</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
+<a class="jxr_linenumber" name="L480" href="#L480">480</a>         tok.setIgnoredMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"IGNORE"</span>));
+<a class="jxr_linenumber" name="L481" href="#L481">481</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
+<a class="jxr_linenumber" name="L482" href="#L482">482</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L483" href="#L483">483</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L484" href="#L484">484</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L485" href="#L485">485</a>         assertEquals(<span class="jxr_string">"bc"</span>, tok.next());
+<a class="jxr_linenumber" name="L486" href="#L486">486</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
+<a class="jxr_linenumber" name="L487" href="#L487">487</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L488" href="#L488">488</a>     }
+<a class="jxr_linenumber" name="L489" href="#L489">489</a> 
+<a class="jxr_linenumber" name="L490" href="#L490">490</a>     @Test
+<a class="jxr_linenumber" name="L491" href="#L491">491</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicIgnoreTrimmed2() {
+<a class="jxr_linenumber" name="L492" href="#L492">492</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"IGNOREaIGNORE: IGNORE bIGNOREc IGNORE : IGNORE "</span>;
+<a class="jxr_linenumber" name="L493" href="#L493">493</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
+<a class="jxr_linenumber" name="L494" href="#L494">494</a>         tok.setIgnoredMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"IGNORE"</span>));
+<a class="jxr_linenumber" name="L495" href="#L495">495</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
+<a class="jxr_linenumber" name="L496" href="#L496">496</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L497" href="#L497">497</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L498" href="#L498">498</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L499" href="#L499">499</a>         assertEquals(<span class="jxr_string">"bc"</span>, tok.next());
+<a class="jxr_linenumber" name="L500" href="#L500">500</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
+<a class="jxr_linenumber" name="L501" href="#L501">501</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L502" href="#L502">502</a>     }
+<a class="jxr_linenumber" name="L503" href="#L503">503</a> 
+<a class="jxr_linenumber" name="L504" href="#L504">504</a>     @Test
+<a class="jxr_linenumber" name="L505" href="#L505">505</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicIgnoreTrimmed3() {
+<a class="jxr_linenumber" name="L506" href="#L506">506</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"IGNOREaIGNORE: IGNORE bIGNOREc IGNORE : IGNORE "</span>;
+<a class="jxr_linenumber" name="L507" href="#L507">507</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':');
+<a class="jxr_linenumber" name="L508" href="#L508">508</a>         tok.setIgnoredMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"IGNORE"</span>));
+<a class="jxr_linenumber" name="L509" href="#L509">509</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L510" href="#L510">510</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L511" href="#L511">511</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L512" href="#L512">512</a>         assertEquals(<span class="jxr_string">"  bc  "</span>, tok.next());
+<a class="jxr_linenumber" name="L513" href="#L513">513</a>         assertEquals(<span class="jxr_string">"  "</span>, tok.next());
+<a class="jxr_linenumber" name="L514" href="#L514">514</a>         assertFalse(tok.hasNext());
+<a class="jxr_linenumber" name="L515" href="#L515">515</a>     }
+<a class="jxr_linenumber" name="L516" href="#L516">516</a> 
+<a class="jxr_linenumber" name="L517" href="#L517">517</a>     @Test
+<a class="jxr_linenumber" name="L518" href="#L518">518</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBasicIgnoreTrimmed4() {
+<a class="jxr_linenumber" name="L519" href="#L519">519</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"IGNOREaIGNORE: IGNORE 'bIGNOREc'IGNORE'd' IGNORE : IGNORE "</span>;
+<a class="jxr_linenumber" name="L520" href="#L520">520</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input, ':', '\'');
+<a class="jxr_linenumber" name="L521" href="#L521">521</a>         tok.setIgnoredMatcher(StrMatcher.stringMatcher(<span class="jxr_string">"IGNORE"</span>));
+<a class="jxr_linenumber" name="L522" href="#L522">522</a>         tok.setTrimmerMatcher(StrMatcher.trimMatcher());
+<a class="jxr_linenumber" name="L523" href="#L523">523</a>         tok.setIgnoreEmptyTokens(false);
+<a class="jxr_linenumber" name="L524" href="#L524">524</a>         tok.setEmptyTokenAsNull(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L525" href="#L525">525</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
+<a class="jxr_linenumber" name="L526" href="#L526">526</a>         assertEquals(<span class="jxr_string">"bIGNOREcd"</span>, tok.next());
+<a class="jxr_linenumber" name="L527" href="#L527">527</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.next());
+<a class="jxr_linenumber" name="L528" href="#L528">528</a>         assertFalse(tok.hasNext());
 <a class="jxr_linenumber" name="L529" href="#L529">529</a>     }
 <a class="jxr_linenumber" name="L530" href="#L530">530</a> 
-<a class="jxr_linenumber" name="L531" href="#L531">531</a>     <strong class="jxr_keyword">void</strong> testEmpty(<strong class="jxr_keyword">final</strong> StrTokenizer tokenizer) {
-<a class="jxr_linenumber" name="L532" href="#L532">532</a>         <strong class="jxr_keyword">this</strong>.checkClone(tokenizer);
-<a class="jxr_linenumber" name="L533" href="#L533">533</a>         assertFalse(tokenizer.hasNext());
-<a class="jxr_linenumber" name="L534" href="#L534">534</a>         assertFalse(tokenizer.hasPrevious());
-<a class="jxr_linenumber" name="L535" href="#L535">535</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tokenizer.nextToken());
-<a class="jxr_linenumber" name="L536" href="#L536">536</a>         assertEquals(0, tokenizer.size());
-<a class="jxr_linenumber" name="L537" href="#L537">537</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="L538" href="#L538">538</a>             tokenizer.next();
-<a class="jxr_linenumber" name="L539" href="#L539">539</a>             fail();
-<a class="jxr_linenumber" name="L540" href="#L540">540</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> NoSuchElementException ex) {}
+<a class="jxr_linenumber" name="L531" href="#L531">531</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L532" href="#L532">532</a>     @Test
+<a class="jxr_linenumber" name="L533" href="#L533">533</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testListArray() {
+<a class="jxr_linenumber" name="L534" href="#L534">534</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a  b c"</span>;
+<a class="jxr_linenumber" name="L535" href="#L535">535</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
+<a class="jxr_linenumber" name="L536" href="#L536">536</a>         <strong class="jxr_keyword">final</strong> String[] array = tok.getTokenArray();
+<a class="jxr_linenumber" name="L537" href="#L537">537</a>         <strong class="jxr_keyword">final</strong> List&lt;?&gt; list = tok.getTokenList();
+<a class="jxr_linenumber" name="L538" href="#L538">538</a>         
+<a class="jxr_linenumber" name="L539" href="#L539">539</a>         assertEquals(Arrays.asList(array), list);
+<a class="jxr_linenumber" name="L540" href="#L540">540</a>         assertEquals(3, list.size());
 <a class="jxr_linenumber" name="L541" href="#L541">541</a>     }
 <a class="jxr_linenumber" name="L542" href="#L542">542</a> 
-<a class="jxr_linenumber" name="L543" href="#L543">543</a>     @Test
-<a class="jxr_linenumber" name="L544" href="#L544">544</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetContent() {
-<a class="jxr_linenumber" name="L545" href="#L545">545</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a   b c \&quot;d e\&quot; f "</span>;
-<a class="jxr_linenumber" name="L546" href="#L546">546</a>         StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
-<a class="jxr_linenumber" name="L547" href="#L547">547</a>         assertEquals(input, tok.getContent());
+<a class="jxr_linenumber" name="L543" href="#L543">543</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L544" href="#L544">544</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> testCSV(<strong class="jxr_keyword">final</strong> String data) {
+<a class="jxr_linenumber" name="L545" href="#L545">545</a>         <strong class="jxr_keyword">this</strong>.testXSVAbc(StrTokenizer.getCSVInstance(data));
+<a class="jxr_linenumber" name="L546" href="#L546">546</a>         <strong class="jxr_keyword">this</strong>.testXSVAbc(StrTokenizer.getCSVInstance(data.toCharArray()));
+<a class="jxr_linenumber" name="L547" href="#L547">547</a>     }
 <a class="jxr_linenumber" name="L548" href="#L548">548</a> 
-<a class="jxr_linenumber" name="L549" href="#L549">549</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input.toCharArray());
-<a class="jxr_linenumber" name="L550" href="#L550">550</a>         assertEquals(input, tok.getContent());
-<a class="jxr_linenumber" name="L551" href="#L551">551</a>         
-<a class="jxr_linenumber" name="L552" href="#L552">552</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer();
-<a class="jxr_linenumber" name="L553" href="#L553">553</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.getContent());
-<a class="jxr_linenumber" name="L554" href="#L554">554</a>     }
-<a class="jxr_linenumber" name="L555" href="#L555">555</a> 
-<a class="jxr_linenumber" name="L556" href="#L556">556</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L557" href="#L557">557</a>     @Test
-<a class="jxr_linenumber" name="L558" href="#L558">558</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testChaining() {
-<a class="jxr_linenumber" name="L559" href="#L559">559</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer();
-<a class="jxr_linenumber" name="L560" href="#L560">560</a>         assertEquals(tok, tok.reset());
-<a class="jxr_linenumber" name="L561" href="#L561">561</a>         assertEquals(tok, tok.reset(<span class="jxr_string">""</span>));
-<a class="jxr_linenumber" name="L562" href="#L562">562</a>         assertEquals(tok, tok.reset(<strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[0]));
-<a class="jxr_linenumber" name="L563" href="#L563">563</a>         assertEquals(tok, tok.setDelimiterChar(' '));
-<a class="jxr_linenumber" name="L564" href="#L564">564</a>         assertEquals(tok, tok.setDelimiterString(<span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L565" href="#L565">565</a>         assertEquals(tok, tok.setDelimiterMatcher(<strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L566" href="#L566">566</a>         assertEquals(tok, tok.setQuoteChar(' '));
-<a class="jxr_linenumber" name="L567" href="#L567">567</a>         assertEquals(tok, tok.setQuoteMatcher(<strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L568" href="#L568">568</a>         assertEquals(tok, tok.setIgnoredChar(' '));
-<a class="jxr_linenumber" name="L569" href="#L569">569</a>         assertEquals(tok, tok.setIgnoredMatcher(<strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L570" href="#L570">570</a>         assertEquals(tok, tok.setTrimmerMatcher(<strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L571" href="#L571">571</a>         assertEquals(tok, tok.setEmptyTokenAsNull(false));
-<a class="jxr_linenumber" name="L572" href="#L572">572</a>         assertEquals(tok, tok.setIgnoreEmptyTokens(false));
-<a class="jxr_linenumber" name="L573" href="#L573">573</a>     }
-<a class="jxr_linenumber" name="L574" href="#L574">574</a> 
-<a class="jxr_linenumber" name="L575" href="#L575">575</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L576" href="#L576">576</a> <em class="jxr_javadoccomment">     * Tests that the {@link StrTokenizer#clone()} clone method catches {@link CloneNotSupportedException} and returns</em>
-<a class="jxr_linenumber" name="L577" href="#L577">577</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L578" href="#L578">578</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L549" href="#L549">549</a>     @Test
+<a class="jxr_linenumber" name="L550" href="#L550">550</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCSVEmpty() {
+<a class="jxr_linenumber" name="L551" href="#L551">551</a>         <strong class="jxr_keyword">this</strong>.testEmpty(StrTokenizer.getCSVInstance());
+<a class="jxr_linenumber" name="L552" href="#L552">552</a>         <strong class="jxr_keyword">this</strong>.testEmpty(StrTokenizer.getCSVInstance(<span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L553" href="#L553">553</a>     }
+<a class="jxr_linenumber" name="L554" href="#L554">554</a> 
+<a class="jxr_linenumber" name="L555" href="#L555">555</a>     @Test
+<a class="jxr_linenumber" name="L556" href="#L556">556</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCSVSimple() {
+<a class="jxr_linenumber" name="L557" href="#L557">557</a>         <strong class="jxr_keyword">this</strong>.testCSV(CSV_SIMPLE_FIXTURE);
+<a class="jxr_linenumber" name="L558" href="#L558">558</a>     }
+<a class="jxr_linenumber" name="L559" href="#L559">559</a> 
+<a class="jxr_linenumber" name="L560" href="#L560">560</a>     @Test
+<a class="jxr_linenumber" name="L561" href="#L561">561</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCSVSimpleNeedsTrim() {
+<a class="jxr_linenumber" name="L562" href="#L562">562</a>         <strong class="jxr_keyword">this</strong>.testCSV(<span class="jxr_string">"   "</span> + CSV_SIMPLE_FIXTURE);
+<a class="jxr_linenumber" name="L563" href="#L563">563</a>         <strong class="jxr_keyword">this</strong>.testCSV(<span class="jxr_string">"   \n\t  "</span> + CSV_SIMPLE_FIXTURE);
+<a class="jxr_linenumber" name="L564" href="#L564">564</a>         <strong class="jxr_keyword">this</strong>.testCSV(<span class="jxr_string">"   \n  "</span> + CSV_SIMPLE_FIXTURE + <span class="jxr_string">"\n\n\r"</span>);
+<a class="jxr_linenumber" name="L565" href="#L565">565</a>     }
+<a class="jxr_linenumber" name="L566" href="#L566">566</a> 
+<a class="jxr_linenumber" name="L567" href="#L567">567</a>     <strong class="jxr_keyword">void</strong> testEmpty(<strong class="jxr_keyword">final</strong> StrTokenizer tokenizer) {
+<a class="jxr_linenumber" name="L568" href="#L568">568</a>         <strong class="jxr_keyword">this</strong>.checkClone(tokenizer);
+<a class="jxr_linenumber" name="L569" href="#L569">569</a>         assertFalse(tokenizer.hasNext());
+<a class="jxr_linenumber" name="L570" href="#L570">570</a>         assertFalse(tokenizer.hasPrevious());
+<a class="jxr_linenumber" name="L571" href="#L571">571</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tokenizer.nextToken());
+<a class="jxr_linenumber" name="L572" href="#L572">572</a>         assertEquals(0, tokenizer.size());
+<a class="jxr_linenumber" name="L573" href="#L573">573</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L574" href="#L574">574</a>             tokenizer.next();
+<a class="jxr_linenumber" name="L575" href="#L575">575</a>             fail();
+<a class="jxr_linenumber" name="L576" href="#L576">576</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> NoSuchElementException ex) {}
+<a class="jxr_linenumber" name="L577" href="#L577">577</a>     }
+<a class="jxr_linenumber" name="L578" href="#L578">578</a> 
 <a class="jxr_linenumber" name="L579" href="#L579">579</a>     @Test
-<a class="jxr_linenumber" name="L580" href="#L580">580</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCloneNotSupportedException() {
-<a class="jxr_linenumber" name="L581" href="#L581">581</a>         <strong class="jxr_keyword">final</strong> Object notCloned = <strong class="jxr_keyword">new</strong> StrTokenizer() {
-<a class="jxr_linenumber" name="L582" href="#L582">582</a>             @Override
-<a class="jxr_linenumber" name="L583" href="#L583">583</a>             Object cloneReset() <strong class="jxr_keyword">throws</strong> CloneNotSupportedException {
-<a class="jxr_linenumber" name="L584" href="#L584">584</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> CloneNotSupportedException(<span class="jxr_string">"test"</span>);
-<a class="jxr_linenumber" name="L585" href="#L585">585</a>             }
-<a class="jxr_linenumber" name="L586" href="#L586">586</a>         }.clone();
-<a class="jxr_linenumber" name="L587" href="#L587">587</a>         assertNull(notCloned);
-<a class="jxr_linenumber" name="L588" href="#L588">588</a>     }
-<a class="jxr_linenumber" name="L589" href="#L589">589</a> 
-<a class="jxr_linenumber" name="L590" href="#L590">590</a>     @Test
-<a class="jxr_linenumber" name="L591" href="#L591">591</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCloneNull() {
-<a class="jxr_linenumber" name="L592" href="#L592">592</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tokenizer = <strong class="jxr_keyword">new</strong> StrTokenizer((<strong class="jxr_keyword">char</strong>[]) <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="L593" href="#L593">593</a>         <em class="jxr_comment">// Start sanity check</em>
-<a class="jxr_linenumber" name="L594" href="#L594">594</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tokenizer.nextToken());
-<a class="jxr_linenumber" name="L595" href="#L595">595</a>         tokenizer.reset();
-<a class="jxr_linenumber" name="L596" href="#L596">596</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tokenizer.nextToken());
-<a class="jxr_linenumber" name="L597" href="#L597">597</a>         <em class="jxr_comment">// End sanity check</em>
-<a class="jxr_linenumber" name="L598" href="#L598">598</a>         <strong class="jxr_keyword">final</strong> StrTokenizer clonedTokenizer = (StrTokenizer) tokenizer.clone();
-<a class="jxr_linenumber" name="L599" href="#L599">599</a>         tokenizer.reset();
-<a class="jxr_linenumber" name="L600" href="#L600">600</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tokenizer.nextToken());
-<a class="jxr_linenumber" name="L601" href="#L601">601</a>         assertEquals(<strong class="jxr_keyword">null</strong>, clonedTokenizer.nextToken());
-<a class="jxr_linenumber" name="L602" href="#L602">602</a>     }
-<a class="jxr_linenumber" name="L603" href="#L603">603</a> 
-<a class="jxr_linenumber" name="L604" href="#L604">604</a>     @Test
-<a class="jxr_linenumber" name="L605" href="#L605">605</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCloneReset() {
-<a class="jxr_linenumber" name="L606" href="#L606">606</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong>[] input = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[]{'a'};
-<a class="jxr_linenumber" name="L607" href="#L607">607</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tokenizer = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
-<a class="jxr_linenumber" name="L608" href="#L608">608</a>         <em class="jxr_comment">// Start sanity check</em>
-<a class="jxr_linenumber" name="L609" href="#L609">609</a>         assertEquals(<span class="jxr_string">"a"</span>, tokenizer.nextToken());
-<a class="jxr_linenumber" name="L610" href="#L610">610</a>         tokenizer.reset(input);
-<a class="jxr_linenumber" name="L611" href="#L611">611</a>         assertEquals(<span class="jxr_string">"a"</span>, tokenizer.nextToken());
-<a class="jxr_linenumber" name="L612" href="#L612">612</a>         <em class="jxr_comment">// End sanity check</em>
-<a class="jxr_linenumber" name="L613" href="#L613">613</a>         <strong class="jxr_keyword">final</strong> StrTokenizer clonedTokenizer = (StrTokenizer) tokenizer.clone();
-<a class="jxr_linenumber" name="L614" href="#L614">614</a>         input[0] = 'b';
-<a class="jxr_linenumber" name="L615" href="#L615">615</a>         tokenizer.reset(input);
-<a class="jxr_linenumber" name="L616" href="#L616">616</a>         assertEquals(<span class="jxr_string">"b"</span>, tokenizer.nextToken());
-<a class="jxr_linenumber" name="L617" href="#L617">617</a>         assertEquals(<span class="jxr_string">"a"</span>, clonedTokenizer.nextToken());
-<a class="jxr_linenumber" name="L618" href="#L618">618</a>     }
-<a class="jxr_linenumber" name="L619" href="#L619">619</a>   
-<a class="jxr_linenumber" name="L620" href="#L620">620</a>     <em class="jxr_comment">// -----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L621" href="#L621">621</a>     @Test
-<a class="jxr_linenumber" name="L622" href="#L622">622</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConstructor_String() {
-<a class="jxr_linenumber" name="L623" href="#L623">623</a>         StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(<span class="jxr_string">"a b"</span>);
-<a class="jxr_linenumber" name="L624" href="#L624">624</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L625" href="#L625">625</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L626" href="#L626">626</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L627" href="#L627">627</a>         
-<a class="jxr_linenumber" name="L628" href="#L628">628</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer(<span class="jxr_string">""</span>);
-<a class="jxr_linenumber" name="L629" href="#L629">629</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L630" href="#L630">630</a>         
-<a class="jxr_linenumber" name="L631" href="#L631">631</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer((String) <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="L632" href="#L632">632</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L633" href="#L633">633</a>     }
-<a class="jxr_linenumber" name="L634" href="#L634">634</a> 
-<a class="jxr_linenumber" name="L635" href="#L635">635</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L636" href="#L636">636</a>     @Test
-<a class="jxr_linenumber" name="L637" href="#L637">637</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConstructor_String_<strong class="jxr_keyword">char</strong>() {
-<a class="jxr_linenumber" name="L638" href="#L638">638</a>         StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(<span class="jxr_string">"a b"</span>, ' ');
-<a class="jxr_linenumber" name="L639" href="#L639">639</a>         assertEquals(1, tok.getDelimiterMatcher().isMatch(<span class="jxr_string">" "</span>.toCharArray(), 0, 0, 1));
-<a class="jxr_linenumber" name="L640" href="#L640">640</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L641" href="#L641">641</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L642" href="#L642">642</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L643" href="#L643">643</a>         
-<a class="jxr_linenumber" name="L644" href="#L644">644</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer(<span class="jxr_string">""</span>, ' ');
-<a class="jxr_linenumber" name="L645" href="#L645">645</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L646" href="#L646">646</a>         
-<a class="jxr_linenumber" name="L647" href="#L647">647</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer((String) <strong class="jxr_keyword">null</strong>, ' ');
-<a class="jxr_linenumber" name="L648" href="#L648">648</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L649" href="#L649">649</a>     }
-<a class="jxr_linenumber" name="L650" href="#L650">650</a> 
-<a class="jxr_linenumber" name="L651" href="#L651">651</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L652" href="#L652">652</a>     @Test
-<a class="jxr_linenumber" name="L653" href="#L653">653</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConstructor_String_<strong class="jxr_keyword">char</strong>_<strong class="jxr_keyword">char</strong>() {
-<a class="jxr_linenumber" name="L654" href="#L654">654</a>         StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(<span class="jxr_string">"a b"</span>, ' ', '&quot;');
-<a class="jxr_linenumber" name="L655" href="#L655">655</a>         assertEquals(1, tok.getDelimiterMatcher().isMatch(<span class="jxr_string">" "</span>.toCharArray(), 0, 0, 1));
-<a class="jxr_linenumber" name="L656" href="#L656">656</a>         assertEquals(1, tok.getQuoteMatcher().isMatch(<span class="jxr_string">"\&quot;"</span>.toCharArray(), 0, 0, 1));
-<a class="jxr_linenumber" name="L657" href="#L657">657</a>         assertEquals(<span class="jxr_string">"a"</span>, tok.next());
-<a class="jxr_linenumber" name="L658" href="#L658">658</a>         assertEquals(<span class="jxr_string">"b"</span>, tok.next());
-<a class="jxr_linenumber" name="L659" href="#L659">659</a>         assertFalse(tok.hasNext());
-<a class="jxr_linenumber" name="L660" href="#L660">660</a>         
-<a class="jxr_linenumber" name="L661" href="#L661">661</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer(<span class="jxr_string">""</span>, ' ', '&quot;');
+<a class="jxr_linenumber" name="L580" href="#L580">580</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetContent() {
+<a class="jxr_linenumber" name="L581" href="#L581">581</a>         <strong class="jxr_keyword">final</strong> String input = <span class="jxr_string">"a   b c \&quot;d e\&quot; f "</span>;
+<a class="jxr_linenumber" name="L582" href="#L582">582</a>         StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
+<a class="jxr_linenumber" name="L583" href="#L583">583</a>         assertEquals(input, tok.getContent());
+<a class="jxr_linenumber" name="L584" href="#L584">584</a> 
+<a class="jxr_linenumber" name="L585" href="#L585">585</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer(input.toCharArray());
+<a class="jxr_linenumber" name="L586" href="#L586">586</a>         assertEquals(input, tok.getContent());
+<a class="jxr_linenumber" name="L587" href="#L587">587</a>         
+<a class="jxr_linenumber" name="L588" href="#L588">588</a>         tok = <strong class="jxr_keyword">new</strong> StrTokenizer();
+<a class="jxr_linenumber" name="L589" href="#L589">589</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tok.getContent());
+<a class="jxr_linenumber" name="L590" href="#L590">590</a>     }
+<a class="jxr_linenumber" name="L591" href="#L591">591</a> 
+<a class="jxr_linenumber" name="L592" href="#L592">592</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L593" href="#L593">593</a>     @Test
+<a class="jxr_linenumber" name="L594" href="#L594">594</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testChaining() {
+<a class="jxr_linenumber" name="L595" href="#L595">595</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tok = <strong class="jxr_keyword">new</strong> StrTokenizer();
+<a class="jxr_linenumber" name="L596" href="#L596">596</a>         assertEquals(tok, tok.reset());
+<a class="jxr_linenumber" name="L597" href="#L597">597</a>         assertEquals(tok, tok.reset(<span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L598" href="#L598">598</a>         assertEquals(tok, tok.reset(<strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[0]));
+<a class="jxr_linenumber" name="L599" href="#L599">599</a>         assertEquals(tok, tok.setDelimiterChar(' '));
+<a class="jxr_linenumber" name="L600" href="#L600">600</a>         assertEquals(tok, tok.setDelimiterString(<span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L601" href="#L601">601</a>         assertEquals(tok, tok.setDelimiterMatcher(<strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L602" href="#L602">602</a>         assertEquals(tok, tok.setQuoteChar(' '));
+<a class="jxr_linenumber" name="L603" href="#L603">603</a>         assertEquals(tok, tok.setQuoteMatcher(<strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L604" href="#L604">604</a>         assertEquals(tok, tok.setIgnoredChar(' '));
+<a class="jxr_linenumber" name="L605" href="#L605">605</a>         assertEquals(tok, tok.setIgnoredMatcher(<strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L606" href="#L606">606</a>         assertEquals(tok, tok.setTrimmerMatcher(<strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L607" href="#L607">607</a>         assertEquals(tok, tok.setEmptyTokenAsNull(false));
+<a class="jxr_linenumber" name="L608" href="#L608">608</a>         assertEquals(tok, tok.setIgnoreEmptyTokens(false));
+<a class="jxr_linenumber" name="L609" href="#L609">609</a>     }
+<a class="jxr_linenumber" name="L610" href="#L610">610</a> 
+<a class="jxr_linenumber" name="L611" href="#L611">611</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L612" href="#L612">612</a> <em class="jxr_javadoccomment">     * Tests that the {@link StrTokenizer#clone()} clone method catches {@link CloneNotSupportedException} and returns</em>
+<a class="jxr_linenumber" name="L613" href="#L613">613</a> <em class="jxr_javadoccomment">     * &lt;code&gt;null&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L614" href="#L614">614</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L615" href="#L615">615</a>     @Test
+<a class="jxr_linenumber" name="L616" href="#L616">616</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCloneNotSupportedException() {
+<a class="jxr_linenumber" name="L617" href="#L617">617</a>         <strong class="jxr_keyword">final</strong> Object notCloned = <strong class="jxr_keyword">new</strong> StrTokenizer() {
+<a class="jxr_linenumber" name="L618" href="#L618">618</a>             @Override
+<a class="jxr_linenumber" name="L619" href="#L619">619</a>             Object cloneReset() <strong class="jxr_keyword">throws</strong> CloneNotSupportedException {
+<a class="jxr_linenumber" name="L620" href="#L620">620</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> CloneNotSupportedException(<span class="jxr_string">"test"</span>);
+<a class="jxr_linenumber" name="L621" href="#L621">621</a>             }
+<a class="jxr_linenumber" name="L622" href="#L622">622</a>         }.clone();
+<a class="jxr_linenumber" name="L623" href="#L623">623</a>         assertNull(notCloned);
+<a class="jxr_linenumber" name="L624" href="#L624">624</a>     }
+<a class="jxr_linenumber" name="L625" href="#L625">625</a> 
+<a class="jxr_linenumber" name="L626" href="#L626">626</a>     @Test
+<a class="jxr_linenumber" name="L627" href="#L627">627</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCloneNull() {
+<a class="jxr_linenumber" name="L628" href="#L628">628</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tokenizer = <strong class="jxr_keyword">new</strong> StrTokenizer((<strong class="jxr_keyword">char</strong>[]) <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L629" href="#L629">629</a>         <em class="jxr_comment">// Start sanity check</em>
+<a class="jxr_linenumber" name="L630" href="#L630">630</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tokenizer.nextToken());
+<a class="jxr_linenumber" name="L631" href="#L631">631</a>         tokenizer.reset();
+<a class="jxr_linenumber" name="L632" href="#L632">632</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tokenizer.nextToken());
+<a class="jxr_linenumber" name="L633" href="#L633">633</a>         <em class="jxr_comment">// End sanity check</em>
+<a class="jxr_linenumber" name="L634" href="#L634">634</a>         <strong class="jxr_keyword">final</strong> StrTokenizer clonedTokenizer = (StrTokenizer) tokenizer.clone();
+<a class="jxr_linenumber" name="L635" href="#L635">635</a>         tokenizer.reset();
+<a class="jxr_linenumber" name="L636" href="#L636">636</a>         assertEquals(<strong class="jxr_keyword">null</strong>, tokenizer.nextToken());
+<a class="jxr_linenumber" name="L637" href="#L637">637</a>         assertEquals(<strong class="jxr_keyword">null</strong>, clonedTokenizer.nextToken());
+<a class="jxr_linenumber" name="L638" href="#L638">638</a>     }
+<a class="jxr_linenumber" name="L639" href="#L639">639</a> 
+<a class="jxr_linenumber" name="L640" href="#L640">640</a>     @Test
+<a class="jxr_linenumber" name="L641" href="#L641">641</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCloneReset() {
+<a class="jxr_linenumber" name="L642" href="#L642">642</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong>[] input = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[]{'a'};
+<a class="jxr_linenumber" name="L643" href="#L643">643</a>         <strong class="jxr_keyword">final</strong> StrTokenizer tokenizer = <strong class="jxr_keyword">new</strong> StrTokenizer(input);
+<a class="jxr_linenumber" name="L644" href="#L644">644</a>         <em class="jxr_comment">// Start sanity check</em>
+<a class="jxr_linenumber" name="L645" href="#L645">645</a>         assertEquals(<span class="jxr_string">"a"</span>, tokenizer.nextToken());
+<a class="jxr_linenumber" name="L646" href="#L646">646</a>         tokenizer.reset(input);
+<a class="jxr_linenumber" name="L647" href="#L647">647</a>         assertEquals(<span class="jxr_string">"a"</span>, tokenizer.nextToken());
+<a class="jxr_linenumber" name="L648" href="#L648">648</a>         <em class="jxr_comment">// End sanity check</em>
+<a class="jxr_linenumber" name="L649" href="#L649">649</a>         <strong class="jxr_keyword">final</strong> StrTokenizer clonedTokenizer = (StrTokenizer) tokenizer.clone();
+<a class="jxr_linenumber" name="L650" href="#L650">650</a>         input[0] = 'b';
+<a class="jxr_linenumber" name="L651" href="#L651">651</a>         tokenizer.reset(input);
+<a class="jxr_linenumber" name="L652" href="#L652">652</a>         assertEquals(<span class="jxr_string">"b"</span>, tokenizer.nextToken());
+<a class="jxr_linenumber" name="L653" href="#L653">653</a>         assertEquals(<span class="jxr_string">"a"</span>, clonedTokenizer.nextToken());
+<a class="jxr_linenumber" name="L654" href="#L654">654</a>     }
+<a class="jxr_linenumber" name="L655" href="#L655">655</a>   
+<a class="jxr_linenumber" name="L656" href="#L656">656</a>     <em class="jxr_comment">// -----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L657" href="#L657">657</a>     @Test
+<a class="jxr_linenumber" name="L658" href="#L658">658</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConstructor_String() {

[... 467 lines stripped ...]


Mime
View raw message