hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhruba Borthakur" <dhr...@gmail.com>
Subject Re: Can FSDataInputStream.read return 0 bytes and if so, what does that mean?
Date Sat, 08 Nov 2008 13:27:22 GMT
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 <pwyckoff@facebook.com> wrote:
> Just want to ensure 0 iff EOF or the requested #of bytes was 0.
>
> On 11/7/08 6:13 PM, "Pete Wyckoff" <pwyckoff@facebook.com> wrote:
>
>
>
> The javadocs says reads up to size bytes. What happens if it returns < 0
> (presumably an error) or 0 bytes (??)
>
> Thanks, pete
>
>
>
>

Mime
View raw message