首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

java网络源操作

2012-11-23 
java网络流操作?? ?1.输出字节ByteArrayOutputStream swapStream new ByteArrayOutputStream()byte[] b

java网络流操作

?

? ?1.输出字节

ByteArrayOutputStream swapStream = new ByteArrayOutputStream();byte[] buf = new byte[100];int len = 0;while ((len = inStream.read(buff, 0, 100)) > 0){swapStream.write(buff, 0, len);}byte[] in_b = swapStream.toByteArray();
? ?2.

?

热点排行