read的返回值
read()返回值是什么? 两个地方弄得很糊涂啊! int bytes = in.read(buf,0,buf.length); int j = 1; for(int i = 0; i < bytes;i++){ System.out.print(Integer.toHexString(buf[i] & 0xff)+" "); } ------------------------------------------------------------- while((c = in.read())!=-1){ out.write(c); out.flush(); }