软件包 | 描述 |
---|---|
java.nio.file |
定义的接口和类的java虚拟机访问文件,文件属性,文件系统。
|
java.nio.file.attribute |
提供对文件和文件系统属性的访问的接口和类。
|
java.nio.file.spi |
为
java.nio.file 包服务提供商类。
|
Modifier and Type | Method and Description |
---|---|
<V extends FileAttributeView> |
SecureDirectoryStream.getFileAttributeView(类<V> type)
返回一个新的文件属性视图来访问该目录的文件属性。
|
static <V extends FileAttributeView> |
Files.getFileAttributeView(Path path, 类<V> type, LinkOption... options)
返回一个给定类型的文件属性视图。
|
<V extends FileAttributeView> |
SecureDirectoryStream.getFileAttributeView(T path, 类<V> type, LinkOption... options)
返回一个新的文件属性视图以访问该目录中的文件的文件属性。
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
FileStore.supportsFileAttributeView(类<? extends FileAttributeView> type)
告诉是否这个文件存储支持给定的文件属性视图所标识的文件属性。
|
Modifier and Type | Interface and Description |
---|---|
interface |
AclFileAttributeView
一个支持读取或更新文件的访问控制列表(ACL)或文件属性查看文件的所有者属性。
|
interface |
BasicFileAttributeView
提供一个视图,它提供了一个常见的许多文件系统的基本集合的文件属性视图。
|
interface |
DosFileAttributeView
提供一个视图的文件属性视图,它提供了一个遗留的“拒绝服务”文件属性的视图。
|
interface |
FileOwnerAttributeView
支持读取或更新文件所有者的文件属性视图。
|
interface |
PosixFileAttributeView
文件属性的观点,提供了常用的操作系统,实现了可移植的操作系统接口使用的文件系统的文件关联的视图文件属性(POSIX)系列标准。
|
interface |
UserDefinedFileAttributeView
提供一个文件的用户定义属性的视图的文件属性视图,有时称为扩展属性。
|
Modifier and Type | Method and Description |
---|---|
abstract <V extends FileAttributeView> |
FileSystemProvider.getFileAttributeView(Path path, 类<V> type, LinkOption... options)
返回一个给定类型的文件属性视图。
|
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.