Thursday, June 7, 2001 02:39 PM
returns the number of bytes that
can be read without blocking
- please read
the API documentation where this is explicitly stated.
It is certainly not
supposed to return the
length of the file.
In your case, reading at least 1 byte initiates a transfer
of a packet, which fills the local buffer (which is apparently
The way you are doing things is just wrong. You need to
read up on how streams work - see the link
to the Java Tutorial I/O chapter to the right of this post -->