Uses of Enum Class
java.nio.file.LinkOption
Packages that use LinkOption
Package
Description
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Service-provider classes for the
java.nio.file package.-
Uses of LinkOption in java.nio.file
Subclasses with type arguments of type LinkOption in java.nio.fileModifier and TypeClassDescriptionenumDefines the options as to how symbolic links are handled.Methods in java.nio.file that return LinkOptionModifier and TypeMethodDescriptionstatic LinkOptionReturns the enum constant of this class with the specified name.static LinkOption[]LinkOption.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in java.nio.file with parameters of type LinkOptionModifier and TypeMethodDescriptionstatic booleanFiles.exists(Path path, LinkOption... options) Tests whether a file exists.static ObjectFiles.getAttribute(Path path, String attribute, LinkOption... options) Reads the value of a file attribute.static <V extends FileAttributeView>
VFiles.getFileAttributeView(Path path, Class<V> type, LinkOption... options) Returns a file attribute view of a given type.<V extends FileAttributeView>
VSecureDirectoryStream.getFileAttributeView(T path, Class<V> type, LinkOption... options) Returns a new file attribute view to access the file attributes of a file in this directory.static FileTimeFiles.getLastModifiedTime(Path path, LinkOption... options) Returns a file's last modified time.static UserPrincipalFiles.getOwner(Path path, LinkOption... options) Returns the owner of a file.static Set<PosixFilePermission> Files.getPosixFilePermissions(Path path, LinkOption... options) Returns a file's POSIX file permissions.static booleanFiles.isDirectory(Path path, LinkOption... options) Tests whether a file is a directory.static booleanFiles.isRegularFile(Path path, LinkOption... options) Tests whether a file is a regular file with opaque content.SecureDirectoryStream.newDirectoryStream(T path, LinkOption... options) Opens the directory identified by the given path, returning aSecureDirectoryStreamto iterate over the entries in the directory.static booleanFiles.notExists(Path path, LinkOption... options) Tests whether the file located by this path does not exist.static <A extends BasicFileAttributes>
AFiles.readAttributes(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation.Files.readAttributes(Path path, String attributes, LinkOption... options) Reads a set of file attributes as a bulk operation.static PathFiles.setAttribute(Path path, String attribute, Object value, LinkOption... options) Sets the value of a file attribute.Path.toRealPath(LinkOption... options) Returns the real path of an existing file. -
Uses of LinkOption in java.nio.file.spi
Methods in java.nio.file.spi with parameters of type LinkOptionModifier and TypeMethodDescriptionbooleanFileSystemProvider.exists(Path path, LinkOption... options) Tests whether a file exists.abstract <V extends FileAttributeView>
VFileSystemProvider.getFileAttributeView(Path path, Class<V> type, LinkOption... options) Returns a file attribute view of a given type.abstract <A extends BasicFileAttributes>
AFileSystemProvider.readAttributes(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation.FileSystemProvider.readAttributes(Path path, String attributes, LinkOption... options) Reads a set of file attributes as a bulk operation.<A extends BasicFileAttributes>
AFileSystemProvider.readAttributesIfExists(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation if it exists.abstract voidFileSystemProvider.setAttribute(Path path, String attribute, Object value, LinkOption... options) Sets the value of a file attribute.