On Fri, 9 Jan 2004, Martin Holz wrote:
> On Friday 09 January 2004 09:46, Kris Jurka wrote: > > > The odd thing about the javadocs is that they say "The data will be > > read from the stream as needed until end-of-file is reached." The > > length parameter's comment is "the number of bytes in the stream." > > Don't know, which version of Javadoc you use. > > http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html#read(byte[],%20int,%20int) > seems pretty clear to me. > > > This is strange because it seems to imply that the length argument > > is just for informational purposes and should not be used to limit > > the amount of data actually read from the stream. > I was referring to the documentation for setBinaryStream. You mentioned that it should throw an Exception if it couldn't read "length" bytes from the stream. I was commenting that our implementation might be wrong by checking the length at all. Kris Jurka ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]