I looked at this a couple of month ago and found it equally confusing.

Gary


On Mon, Apr 22, 2013 at 12:14 PM, sebb <seb...@gmail.com> wrote:

> I'm trying to fix IO-356, and having problems.
>
> I think this is because the code is a bit confused.
>
> The read() method reads bytes from the encoded byte buffer.
>
> However skip(int) skips the underlying CharBuf, and available() checks the
> CharBuf
>
> I would expect read() and skip(1) to have the same effect (except possibly
> at EOF).
> However that is not the case currently.
>
> Also I would expect available() to relate to the number of characters
> available for read().
>
> The class extends InputStream, and I would expect all the
> overridden/implemented methods to relate to the InputStream, not the source
> Charset.
>
> Or am I missing something here?
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to