Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and
Дата
Msg-id Pine.LNX.4.33.0401091115580.5608-100000@leary.csoft.net
обсуждение исходный текст
Ответ на Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and  (Martin Holz <holz@fiz-chemie.de>)
Ответы Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and
Список pgsql-bugs
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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Martin Holz
Дата:
Сообщение: Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and
Следующее
От: Martin Holz
Дата:
Сообщение: Re: jdbc1.AbstractJdbc1Statement.setBinaryStream bug and