Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从这个例子 中我了解到
OutputStream out = = new BufferedOutputStream(new FileOutputStream(file));
没有缓冲!为什么?
您误读了文档。
当文档状态:
此流未缓冲。
...他们指的是FileOutputStream自己,而不是示例代码。
FileOutputStream
因此文档中的下一行:
大多数调用者应该用BufferedOutputStream.
BufferedOutputStream