read()的返回值怎么会出现不一样的结果呢?
int bytes = 0;
bytes = in.read(buf, 0, buf.length);
System.out.println(bytes);
System.out.println(bytes = in.read(buf,0,10));
System.out.println(bytes = in.read(buf, 0, buf.length));
返回值分别是
100
-1
-1
这种不同的返回值是怎么出现的呢?源码里面的判断么?