且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Java 7 API逐字节读取文件

更新时间:2023-01-12 13:17:11

阅读逐字节是另一种极端的解决方案,并且效率非常低。您应该只使用BufferedInputStream,并按块读取字节块。

Reading byte by byte is the other extreme solution, and will be very inefficient. You should simply use a BufferedInputStream, and read the bytes chunk by chunk.

阅读关于字节流的Java IO教程