Javascript FileReader.slice(startingByte,endindByte)等效于java

时间:2017-01-31 13:10:57

标签: java filereader

参考以下规范:

https://www.w3.org/TR/FileAPI/#slice-method-algo

有一种方法FileReader.slice(startingByte, endindByte)允许从特定的starting byte读取文件到ending byte,这在阅读非常大的文件(1GB +)时非常有用。

java中的等价方式是什么?