日期:2014-05-18  浏览次数:20675 次

流写入内存 怎样读取数据
流写入内存

PipedInputStream   is   =   new   PipedInputStream();
PipedOutputStream   os   =   new   PipedOutputStream(is);
os.write(doc.toString().getBytes());

我怎样在读取呢 

谢谢

------解决方案--------------------
你使用多线程???为什么要用管道?

如果非要用管道,既然你知道用PipedOutputStream写,为什么不知道用PipedInputStream 读?
------解决方案--------------------
学一招了