[英]Confused about: RandomAccessFile.readFully(byte[] b)
lets say byte[] b = 1024 让我们说byte [] b = 1024
for(int k = 0; k < 10; k++)
data.readFully(b);
does the readFully() method increment by itself if it is put inside of a loop kind of like the nextLine() method? 如果将readFully()方法放在类似nextLine()方法的循环中,它是否会自行递增? or will continue to read the same 1024 bytes over and over?
或者会一遍又一遍地读取相同的1024字节?
读取指定的字节数后,指针将被移动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.