码迷,mamicode.com
首页 > 其他好文 > 详细

inputstream和outputstream读写数据模板代码

时间:2014-09-28 22:43:15      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   数据   sp   div   c   log   代码   

  //读写数据模板代码
byte buffer[] = new byte[1024];
int len=0;
while((len=in.read(buffer))>0){
out.write(buffer,0,len);
}

 

inputstream和outputstream读写数据模板代码

标签:style   blog   color   数据   sp   div   c   log   代码   

原文地址:http://www.cnblogs.com/liun1994/p/3999056.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!