Closed GoogleCodeExporter closed 9 years ago
This seems reasonable enough, though we can always use more evidence of its
broad applicability.
Original comment by kevinb@google.com
on 13 Jul 2011 at 7:39
This is somewhat like an abstraction of the intended base functionality of e.g.
DigestInputStream (which doesn't have this behavior; it won't digest over what
is skipped).
However, there's a bug in the posted version, because the implementations of
InputStream.skip() that I've seen use a static buffer for the reads, as opposed
to an instance buffer. This will cause issues with CapturingInputStream in
issue 594, so I've attached an updated version.
As for whether it belongs in guava, I'm ambivalent - it just happens to be a
class I've used a lot, and this (plus the CapturingInputStream layer) works
much more cleanly than TeeInputStream in Apache Commons IO.
Original comment by tv@duh.org
on 13 Jul 2011 at 7:46
Attachments:
Original comment by fry@google.com
on 10 Dec 2011 at 4:04
Original comment by fry@google.com
on 16 Feb 2012 at 7:17
Original comment by kevinb@google.com
on 30 May 2012 at 7:43
Original comment by kevinb@google.com
on 22 Jun 2012 at 6:16
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:15
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:18
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:09
Original issue reported on code.google.com by
tv@duh.org
on 5 Apr 2011 at 6:03Attachments: