Bug ID: JDK-4267294 InputStream must be created in getInputStream...
Constructor - passes in the InputStream PdfDataSource(InputStream pdf) {.public String getName() {. return "PDFDataSource" ; } } Here's the stacktrace from the exception: java.io.IOException: read error.