Results for “java stringreader inputstream function 2 code error 1 site:java.com 3”
java.com
Java Help Center - Error Messages
Java 8. Error 1721: There is a problem with this Windows Installer Package.
bugs.java.com
Bug ID: JDK-4267294 InputStream must be created in getInputStream...
The stream is already consumed when the second getInputStream() is executed. So I'm forced to write the stream to a temporary file (because it may not fit in a memory resident ByteArrayInputStream), and return a new InputStream object each time.