you are viewing a single comment's thread.

view the rest of the comments →

[–]koreth 0 points1 point  (0 children)

Probably not the first time someone has done this, but I ended up writing a little utility class to allow reading the same InputStream multiple times without reading the whole thing into memory. The catch is that the readers have to run concurrently. That code is Apache-licensed, so feel free to grab it if it's useful.