CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Java >  J2SE / 基础类

求高手帮我看看文档说什么《关于java.io》

楼主star_str(生命火花)2005-04-03 21:57:35 在 Java / J2SE / 基础类 提问

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

相关问题

  • 在那里下载java帮助文档
  • Java 的帮助文档的下载
  • 那里有java类的帮助文档?
  • 帮助文档
  • 帮助文档
  • 帮助文档
  • 300分求chm格式的java api帮助文档
  • 请问哪里有JAVA帮助文档下载?
  • C++中有没有类似于Java的帮助文档?
  • 请问哪儿有Java的帮助文档?

关键词

  • 文件
  • 高手
  • than a regular
  • filenotfoundexception
  • thrown
  • argument
  • 打开
  • cannot
  • checkread method
  • directory rather

得分解答快速导航

  • 帖主:star_str
  • zhutouzip

相关链接

  • CSDN Java频道
  • Java类图书
  • Java类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo