Kotlin File.read() 函数转换为 Java 代码示例
public byte[] read(File file, long offset, int length) throws IOException {\n FileInputStream inputStream = new FileInputStream(file);\n inputStream.skip(offset);\n byte[] buffer = new byte[length];\n inputStream.read(buffer, 0, length);\n inputStream.close();\n return buffer;\n}
原文地址: https://www.cveoy.top/t/topic/psap 著作权归作者所有。请勿转载和采集!