square/tape — pull request #61 by pforhan (2014-11-05 23:05:56+00:00)
Title: Early abort for forEach, peek multiple

Adds the capability to peek at multiple entries at the head of the
queue. I didn't have to change QueueFile, as its forEach already can
avoid reading bytes, but this optimization to abort early saves some
object creation.

While this is a breaking API change (QueueFile.ElementReader.read now
returns a boolean), I did not alter the ObjectQueue interface, which is
more likely to be implemented.