求高手帮我看看文档说什么《关于java.io》
FileInputStream
public FileInputStream(String name)
throws FileNotFoundException
Creates a FileInputStream by opening a connection to an actual file, the file named by the path name name in the file system. A new FileDescriptor object is created to represent this file connection.
First, if there is a security manager, its checkRead method is called with the name argument as its argument.
If the named file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading then a FileNotFoundException is thrown
+++++++++++++++++++++++++++++++++++++++++++++++++++
First, if there is a security manager, its checkRead method is called with the name argument as its argument.
If the named file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading then a FileNotFoundException is thrown
那位高手帮我解释一下吧
问题点数:30、回复次数:3Top
1 楼zhutouzip(醒了的鸟)回复于 2005-04-03 22:09:05 得分 30
你是要帮你翻译吗?呵呵
通过打开一个实际的文件连接打开一个文件流,这个路径指明文件必须是存在于文件系统里的文件!
首先,如果有安全管理的话,它的checkRead方法用和它自身相同的参数被调用
如果这个文件不存在,或者目录不regular,或者其他的什么原因导致这个文件不能打开就会抛出一个FileNotFoundException异常!
哎呀,不想当翻译了,呵呵,有什么不懂的地方提出来啊,是看不懂英文还是?Top
2 楼Hodex(小何才露尖尖角)回复于 2005-04-04 08:06:33 得分 0
.......Top
3 楼star_str(生命火花)回复于 2005-04-04 14:28:06 得分 0
楼上的两位高手只是大概的解释了一下,但是我想知道的是一些细节意思
如:
1.>its checkRead method is called with the name argument as its argument.
2.>is a directory rather than a regular file, or for some other reason cannot be opened for reading then a FileNotFoundException is thrown
谢谢
Top




