7273747576777879808182
assertEquals( 'x', buf[0]) ; len = cs.read(buf, 0, 10); assertEquals( -1, len ); // rewind cs.reset(); len = cs.read(buf, 0, 10); assertEquals( 1, len ); assertEquals( 'x', buf[0]) ; }
164165166167168169170171172173174
} catch (Exception e) { assertEquals("read(CharBuffer)", e.getMessage()); } try { cs.reset(); fail(); } catch (Exception e) { assertEquals("reset()", e.getMessage()); }
166167168169170171172173174175176
170171172173174175176177178179180
159160161162163164165166167168169