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 中的 RandomAccessFile 读取一定数量的字节?
方法如何read(byte[] b)?来自Java文档..
read(byte[] b)
从此文件中读取最多 b.length 个字节的数据到字节数组中。此方法会阻塞,直到至少有一个字节的输入可用。