0
从这个example 我得知为什么Outputstream =新的BufferedOutputStream不被缓冲?
OutputStream out = = new BufferedOutputStream(new FileOutputStream(file));
不会被缓冲!为什么?
从这个example 我得知为什么Outputstream =新的BufferedOutputStream不被缓冲?
OutputStream out = = new BufferedOutputStream(new FileOutputStream(file));
不会被缓冲!为什么?
您误解了文档。
当文档状态:
该流不缓冲。
...他们指的是FileOutputStream
本身,不示例代码。
因此,在文档的下一行:
大多数用户请与
BufferedOutputStream
包装这个流。
什么意思是“没有缓冲”?您的代码用于通过缓冲区将信息发送到文件。 – LLAlive 2012-08-16 08:35:06
@LLAlive流不被缓冲... – MyTitle 2012-08-16 08:37:57