It can return 0 if and only if the requested size was zero. For EOF, it should return -1.
dhruba On Fri, Nov 7, 2008 at 8:09 PM, Pete Wyckoff <[EMAIL PROTECTED]> wrote: > Just want to ensure 0 iff EOF or the requested #of bytes was 0. > > On 11/7/08 6:13 PM, "Pete Wyckoff" <[EMAIL PROTECTED]> wrote: > > > > The javadocs says reads up to size bytes. What happens if it returns < 0 > (presumably an error) or 0 bytes (??) > > Thanks, pete > > > >
