当read
在InputStream对象上调用方法,并且off
和len
参数为long
s时,它显然无法做到这一点:
The method read(byte[], int, int) in the type InputStream is not applicable for the arguments (byte[], long, long)
那我真的需要逐个阅读吗?有一些简单的解决方法吗?他们为什么不能只是超载?
数组必须按
int
值建立索引;short
,,byte
或char
值也可以用作索引值,因为它们经过一元数值提升(第5.6.1节)并成为int值。
提供abyte[]
和along
len
根本没有意义。不存在这样的API。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句