Export to GitHub

kryo - issue #90

Make Input.optional() accessible, or provide an eof() method


Posted on Sep 11, 2012 by Happy Rabbit

When writing a reader over a Kryo Input, it's nice to know when one has reached end of stream at a "normal" point.

The way to do this is to call optional(1) before trying to read. However, optional() isn't public.

Please make optional() public, or create a public boolean eof() { return optional(1) > 0; }

Comment #1

Posted on Nov 30, 2012 by Grumpy Camel

eof() has been added. Thanks!

Status: Fixed

Labels:
Type-Defect Priority-Medium