摘要: 1、read() 功能:读取单个字符的个数,如果已经读完的话会返回-1 (其范围从 0 到 65535 ) 例子如下: byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) > 0) { //单个读取计数,直到结束返回-1 阅读全文
posted @ 2017-01-09 12:00 快乐的骑马哥 阅读(3008) 评论(0) 推荐(0)