FileInputStream fis = new FileInputStream();int t = fis.read;如何看read方法返回值是int类型的数?源码没有实现?
2 回答
jeck猫
TA贡献1909条经验 获得超7个赞
read方法是抽象类InputStream的抽象方法,在FileInputStream有实现
public int read() throws IOException {
return read0();
}
private native int read0() throws IOException;
要看native方法需要下载完整的OpenJDK源码包可以查看
添加回答
举报
0/150
提交
取消
