Package com.google.common.jimfs
Enum Class Feature
- All Implemented Interfaces:
Serializable
,Comparable<Feature>
,Constable
Optional file system features that may be supported or unsupported by a Jimfs file system
instance.
- Author:
- Colin Decker
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFeature controlling support forFileChannel
.Feature controlling support for hard links to regular files.Feature controlling support forSecureDirectoryStream
.Feature controlling support for symbolic links. -
Method Summary
-
Enum Constant Details
-
LINKS
Feature controlling support for hard links to regular files.Affected method:
If this feature is not enabled, this method will throw
UnsupportedOperationException
. -
SYMBOLIC_LINKS
Feature controlling support for symbolic links.Affected methods:
If this feature is not enabled, these methods will throw
UnsupportedOperationException
. -
SECURE_DIRECTORY_STREAM
Feature controlling support forSecureDirectoryStream
.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 implementSecureDirectoryStream
. -
FILE_CHANNEL
Feature controlling support forFileChannel
.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 theFiles
methods will not beFileChannel
instances and theFileChannel.open
andAsynchronousFileChannel.open
methods will throwUnsupportedOperationException
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-