Enum Feature

java.lang.Object
java.lang.Enum<Feature>
io.roastedroot.zerofs.Feature
All Implemented Interfaces:
Serializable, Comparable<Feature>

public enum Feature extends Enum<Feature>
Optional file system features that may be supported or unsupported by a ZeroFs file system instance.
  • Enum Constant Details

    • SECURE_DIRECTORY_STREAM

      public static final Feature SECURE_DIRECTORY_STREAM
      Feature controlling support for
      invalid reference
      SecureDirectoryStream
      .

      Affected 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

      invalid reference
      DirectoryStream
      instances returned by these methods will also implement
      invalid reference
      SecureDirectoryStream
      .
    • FILE_CHANNEL

      public static final Feature FILE_CHANNEL
      Feature controlling support for
      invalid reference
      FileChannel
      .

      Affected 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

      invalid reference
      SeekableByteChannel
      instances returned by the Files methods will not be FileChannel instances and the FileChannel.open and AsynchronousFileChannel.open methods will throw UnsupportedOperationException.
  • Constructor Details

    • Feature

      private Feature()
  • Method Details

    • values

      public static Feature[] 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

      public static Feature valueOf(String name)
      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 name
      NullPointerException - if the argument is null