On Wed, Mar 18, 2009 at 8:31 AM, sauternes <hossein.gho...@gmail.com> wrote:

> I've read the various useful posts on this discussion group about
> using popLimit() and pushLimit() to control how many bytes are read at
> a time when using a CodedInputStream, but is there an elegant way of
> detecting EOF/end of stream or is it simply a question of waiting for
> an exception to be thrown and then dealing with it?  That seems a
> little inelegant.

Hmm, I guess there isn't, but this should be possible to add.  I'll stick in
on my enormous TODO list.

> As a sidebar "CodedInputStream" is a bit of misnomer IMHO since it
> doesn't extend InputStream and have the usual stream handling
> facilities you would expect of a class with that name.

The name was chosen to correspond to the C++ class of the same name.  Oh

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to