Enum Feature
- All Implemented Interfaces:
Serializable, Comparable<Feature>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFeature controlling support for.invalid reference
FileChannelFeature controlling support for hard links to regular files.Feature controlling support for.invalid reference
SecureDirectoryStreamFeature controlling support for symbolic links. -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
LINKS
Feature controlling support for hard links to regular files.Affected method:
-
invalid reference
Files#createLink(Path, Path)
If this feature is not enabled, this method will throw
UnsupportedOperationException. -
-
SYMBOLIC_LINKS
Feature controlling support for symbolic links.Affected methods:
-
invalid reference
Files#createSymbolicLink(Path, Path, FileAttribute...) -
invalid reference
Files#readSymbolicLink(Path)
If this feature is not enabled, these methods will throw
UnsupportedOperationException. -
-
SECURE_DIRECTORY_STREAM
Feature controlling support for.invalid reference
SecureDirectoryStreamAffected methods:
-
invalid reference
Files#newDirectoryStream(Path) -
invalid reference
Files#newDirectoryStream(Path, DirectoryStream.Filter) -
invalid reference
Files#newDirectoryStream(Path, String)
If this feature is enabled, the
instances returned by these methods will also implementinvalid reference
DirectoryStream.invalid reference
SecureDirectoryStream -
-
FILE_CHANNEL
Feature controlling support for.invalid reference
FileChannelAffected methods:
-
invalid reference
Files#newByteChannel(Path, OpenOption...) -
invalid reference
Files#newByteChannel(Path, Set, FileAttribute...) -
invalid reference
FileChannel#open(Path, OpenOption...) -
invalid reference
FileChannel#open(Path, Set, FileAttribute...) -
invalid reference
AsynchronousFileChannel#open(Path, OpenOption...) -
invalid reference
AsynchronousFileChannel#open(Path, Set, ExecutorService, FileAttribute...)
If this feature is not enabled, the
instances returned by theinvalid reference
SeekableByteChannelFilesmethods will not beFileChannelinstances and theFileChannel.openandAsynchronousFileChannel.openmethods will throwUnsupportedOperationException. -
-
-
Constructor Details
-
Feature
private Feature()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-