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