Open GoogleCodeExporter opened 9 years ago
@Bryce
After all that, I believe your request is invalid because
InputStream.reset/mark are firstly optional and not always possible.
The usual paradigm is that an InputSTream is completely consumed and possibly
empty and always never reset when use has completed. If you want to start from
the start, recrete or get the InputStream again. I would suggest that you
either recreate the FileInputStream or perhaps dump the bytes of the
InputStream into a BAOS and then create the IS to pass to JP from the BAOS.
I cant think of a single OSS framework or library that "resets" a InputStream
it is given.. it just doesnt happen. Think of your own code that is given an
InputStream, do you ever call reset() when you are finished as part of the
resource cleanup. Of course not, one simply calls close and thats it.
Original comment by miroslav...@gmail.com
on 4 Jun 2011 at 4:57
Original issue reported on code.google.com by
bnemhau...@gmail.com
on 27 Apr 2010 at 3:21