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.
我想用编程语言(即java)读取文件。通常方法签名是
byte[] readBytes(int numberOfBytes) .
字节数应该是操作系统使用的格式(即Windows 4096)的块大小的倍数?我应该指定哪些字节数才能获得真正好的性能?BufferedInputStream 和普通 InputStream 有什么区别?
谢谢。
您不必担心这一点(幸运的是!)。由操作系统正确管理并对应用程序程序员透明。