Uses of Class
java.nio.file.LinkOption
-
Packages that use LinkOption 软件包 描述 java.nio.file 定义Java虚拟机访问文件,文件属性和文件系统的接口和类。java.nio.file.spi java.nio.file包的服务提供者类。 -
-
Uses of LinkOption in java.nio.file
Methods in java.nio.file that return LinkOption Modifier and Type 方法 描述 static LinkOptionLinkOption. valueOf(String name)以指定的名称返回此类型的枚举常量。static LinkOption[]LinkOption. values()按照它们声明的顺序返回一个包含此枚举类型常量的数组。Methods in java.nio.file with parameters of type LinkOption Modifier and Type 方法 描述 static booleanFiles. exists(Path path, LinkOption... options)测试文件是否存在。static ObjectFiles. getAttribute(Path path, String attribute, LinkOption... options)读取文件属性的值。static <V extends FileAttributeView>
VFiles. getFileAttributeView(Path path, Class<V> type, LinkOption... options)返回给定类型的文件属性视图。<V extends FileAttributeView>
VSecureDirectoryStream. getFileAttributeView(T path, Class<V> type, LinkOption... options)返回一个新的文件属性视图来访问此目录中文件的文件属性。static FileTimeFiles. getLastModifiedTime(Path path, LinkOption... options)返回文件的上次修改时间。static UserPrincipalFiles. getOwner(Path path, LinkOption... options)返回文件的所有者。static Set<PosixFilePermission>Files. getPosixFilePermissions(Path path, LinkOption... options)返回文件的POSIX文件权限。static booleanFiles. isDirectory(Path path, LinkOption... options)测试文件是否是目录。static booleanFiles. isRegularFile(Path path, LinkOption... options)测试文件是否是具有不透明内容的常规文件。SecureDirectoryStream<T>SecureDirectoryStream. newDirectoryStream(T path, LinkOption... options)打开由给定路径标识的目录,返回一个SecureDirectoryStream以遍历目录中的条目。static booleanFiles. notExists(Path path, LinkOption... options)测试此路径所在的文件是否不存在。static <A extends BasicFileAttributes>
AFiles. readAttributes(Path path, Class<A> type, LinkOption... options)读取文件的属性作为批量操作。static Map<String,Object>Files. readAttributes(Path path, String attributes, LinkOption... options)读取一组文件属性作为批量操作。static PathFiles. setAttribute(Path path, String attribute, Object value, LinkOption... options)设置文件属性的值。PathPath. toRealPath(LinkOption... options)返回现有文件的 真实路径。 -
Uses of LinkOption in java.nio.file.spi
Methods in java.nio.file.spi with parameters of type LinkOption Modifier and Type 方法 描述 abstract <V extends FileAttributeView>
VFileSystemProvider. getFileAttributeView(Path path, Class<V> type, LinkOption... options)返回给定类型的文件属性视图。abstract <A extends BasicFileAttributes>
AFileSystemProvider. readAttributes(Path path, Class<A> type, LinkOption... options)读取文件的属性作为批量操作。abstract Map<String,Object>FileSystemProvider. readAttributes(Path path, String attributes, LinkOption... options)读取一组文件属性作为批量操作。abstract voidFileSystemProvider. setAttribute(Path path, String attribute, Object value, LinkOption... options)设置文件属性的值。
-