bugs.java.com
JDK-4291371 - Java Issue Tracker
Nov 14, 1999 ... The looping code is actually in the InputStreamReader.fill() method. The ... program", 10000); port.enableReceiveTimeout(3000); InputStream ...
Nov 14, 1999 ... The looping code is actually in the InputStreamReader.fill() method. The ... program", 10000); port.enableReceiveTimeout(3000); InputStream ...
I have now isolated the problem into a single piece of code for demonstration purposes. This is cut down from a larger piece of software which uses the Java Activation Framework (hence the use of InputStreams). I have attached the code, and two trivial HTML documents.
addAttachment(String contentType, InputStream in). Because I don't know what type of InputStream that can be passed in, I can't use any of the provided DataSource implementation classes (e.g. java.activation.FileDataSource).