public enum Feature extends Enum<Feature>
Enum Constant and Description |
---|
FILE_CHANNEL
Feature controlling support for
FileChannel . |
LINKS
Feature controlling support for hard links to regular files.
|
SECURE_DIRECTORY_STREAM
Feature controlling support for
SecureDirectoryStream . |
SYMBOLIC_LINKS
Feature controlling support for symbolic links.
|
Modifier and Type | Method and Description |
---|---|
static Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Feature LINKS
Affected method:
If this feature is not enabled, this method will throw
UnsupportedOperationException
.
public static final Feature SYMBOLIC_LINKS
Affected methods:
If this feature is not enabled, these methods will throw
UnsupportedOperationException
.
public static final Feature SECURE_DIRECTORY_STREAM
SecureDirectoryStream
.
Affected methods:
Files.newDirectoryStream(Path)
Files.newDirectoryStream(Path, DirectoryStream.Filter)
Files.newDirectoryStream(Path, String)
If this feature is enabled, the DirectoryStream
instances returned by these methods
will also implement SecureDirectoryStream
.
public static final Feature FILE_CHANNEL
FileChannel
.
Affected methods:
Files.newByteChannel(Path, OpenOption...)
Files.newByteChannel(Path, Set, FileAttribute...)
FileChannel.open(Path, OpenOption...)
FileChannel.open(Path, Set, FileAttribute...)
AsynchronousFileChannel.open(Path, OpenOption...)
AsynchronousFileChannel.open(Path, Set, ExecutorService, FileAttribute...)
If this feature is not enabled, the SeekableByteChannel
instances returned by the
Files
methods will not be FileChannel
instances and the
FileChannel.open
and AsynchronousFileChannel.open
methods will throw
UnsupportedOperationException
.
public static Feature[] values()
for (Feature c : Feature.values()) System.out.println(c);
public static Feature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2013–2016 Google Inc.. All rights reserved.