java.io.File
length
public long length()
Returns the length of the file denoted by this abstract pathname.
Returns:
The length, in bytes, of the file denoted by this abstract pathname, or 0L if the file does not exist
Throws:
SecurityException - If a security manager exists and its SecurityManager.checkRead(java.io.FileDescriptor) method denies read access to the file
length
public long length()
Returns the length of the file denoted by this abstract pathname.
Returns:
The length, in bytes, of the file denoted by this abstract pathname, or 0L if the file does not exist
Throws:
SecurityException - If a security manager exists and its SecurityManager.checkRead(java.io.FileDescriptor) method denies read access to the file
解决方案 »
- JDBC连Oracle事务测试中的问题!~求大神帮忙看下问题在哪里??
- 大家利用网络编程都实现了那些实际的东西?
- 文件管理界面设计方案
- java怎么连个默认的界面设计器都没有,还要靠手工编写,java发展了这么多年,ide和vs真是不能比
- java类库包的扩展,环境变量设置java.lang.NoClassDefFoundError
- 配置JDK环境设置的问题,随便说说自己这半年的经历
- poi中怎么给Excel创建多个sheet?
- JAVA绘图问题?
- [swing][布局管理器][layout]怎样实现层叠的组件
- 关于调用外部工具的问题
- java开发的窗体中改变窗体大小时会触发什么事件及如何根据窗体大小调整控件大小、位置
- 谁能告诉我???(!!!)
long size=f.length();