随笔 - 55  文章 - 187  trackbacks - 0
<2008年2月>
272829303112
3456789
10111213141516
17181920212223
2425262728291
2345678

常用链接

留言簿(12)

随笔分类

随笔档案

groovy

搜索

  •  

最新评论

阅读排行榜

评论排行榜

下面是用PipedInputStream,PipedOutputStream实现的输入流与输出流的链接:
  PipedInputStream pis = new PipedInputStream();
  PipedOutputStream pos = new PipedOutputStream();
  pos.connect(pis);
  
  用commons-io的IOUtils.copy方法也可以实现输入流、输出流的链接,但是原理是不一样的。
--------------------

    WE准高手
posted on 2008-02-03 14:56 大卫 阅读(2789) 评论(3)  编辑  收藏 所属分类: Java

FeedBack:
# re: 用PipedInputStream,PipedOutputStream实现输入流、输出流的链接。 2008-02-17 12:35 83fff
不错呀,好文章  回复  更多评论
  
# re: 用PipedInputStream,PipedOutputStream实现输入流、输出流的链接。 2008-11-30 23:09 xx
OH MY GOD!!  回复  更多评论
  
# re: 用PipedInputStream,PipedOutputStream实现输入流、输出流的链接。 2009-11-21 13:19 kamio
问题是 怎么跟其他 流连接来真正实现 有用连接
  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: