bugs.java.com
JDK-4529325 - Java Issue Tracker
Nov 19, 2001 ... ... 2 Runtime Environment, Standard Edition (build 1.4.0 ... Replacing in the submitter's example result = inflater.readUTF(); with String ...
Nov 19, 2001 ... ... 2 Runtime Environment, Standard Edition (build 1.4.0 ... Replacing in the submitter's example result = inflater.readUTF(); with String ...
But the stream returned by CommPort.getInputStream() simply returns zero, without throwing an exception. The documentation for InputStream.read(byte[]) doesn't indicate that zero is an invalid value, though.
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.