aideliwu
发贴: 18
积分: 0
|
于 2004-09-01 21:32
我思考le很久,也查看啦代码很久,可还是百思不得其解, 在Freejava中运行的结果还是: java.io.IOException: 句柄无效。 at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:191) at java.io.BufferedInputStream.read1(BufferedInputStream.java:220) at java.io.BufferedInputStream.read(BufferedInputStream.java:277) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at NumberInput.main(NumberInput.java:9) Exception in thread "main" Exit code: 1 There were errors
对于我来说,这样de提示问题真de可大le,为什么会句柄无效呢??我只是用啦: InputStreamReader(System.in); 我访问de资源是什么呢???为什么会无效呢???? at java.io.FileInputStream.read(FileInputStream.java:191) 其中de参数怎么是FileInputStream.java:191呢?? ":191"又是什么呀??? 哎~望你能不吝赐教,不厌我烦de给一个迷糊中de菜鸟提示, 再次感谢你,你的帮助会使我在java路上少走好多弯路,剩好多时间de.
|