JAVA中读取文件信息

FileInputStream fis = new FileInputStream();
int t = fis.read;
如何看read方法返回值是int类型的数?源码没有实现?

郎朗坤
浏览 372回答 2
2回答

jeck猫

read方法是抽象类InputStream的抽象方法,在FileInputStream有实现 public int read() throws IOException { return read0(); } private native int read0() throws IOException; 要看native方法需要下载完整的OpenJDK源码包可以查看
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java