标签: java filereader
参考以下规范:
https://www.w3.org/TR/FileAPI/#slice-method-algo
有一种方法FileReader.slice(startingByte, endindByte)允许从特定的starting byte读取文件到ending byte,这在阅读非常大的文件(1GB +)时非常有用。
FileReader.slice(startingByte, endindByte)
starting byte
ending byte
java中的等价方式是什么?
答案 0 :(得分:1)
您可以在此处使用搜索方法,文档 https://docs.oracle.com/javase/7/docs/api/java/io/RandomAccessFile.html http://www.cs.usfca.edu/~parrt/course/601/lectures/io.html