public interface DosFileAttributes extends BasicFileAttributes
使用示例:
路径文件=…dosfileattributes属性=文件。readAttributes(文件,dosfileattributes。类);
Modifier and Type | Method and Description |
---|---|
boolean |
isArchive()
返回归档属性的值。
|
boolean |
isHidden()
返回隐藏属性的值。
|
boolean |
isReadOnly()
返回只读属性的值。
|
boolean |
isSystem()
返回系统属性的值。
|
creationTime, fileKey, isDirectory, isOther, isRegularFile, isSymbolicLink, lastAccessTime, lastModifiedTime, size
boolean isReadOnly()
此属性通常被用来作为一个简单的访问控制机制,以防止被删除或更新的文件。是否对文件系统或平台进行任何强制执行以防止只读文件被更新是实现特定的。
boolean isHidden()
此属性通常用于指示用户是否可见该文件。
boolean isArchive()
此属性通常用于备份程序。
boolean isSystem()
此属性通常用于表示该文件是操作系统的一个组件。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.