Enum Class FileProviderEnum

java.lang.Object
java.lang.Enum<FileProviderEnum>
io.github.xezzon.zeroweb.common.config.FileProviderEnum
All Implemented Interfaces:
Serializable, Comparable<FileProviderEnum>, Constable

public enum FileProviderEnum extends Enum<FileProviderEnum>

文件存储后端枚举。

定义了支持的文件存储服务类型,例如文件系统 (FS) 和 S3 兼容的对象存储。

Author:
xezzon
  • Enum Constant Details

    • FS

      public static final FileProviderEnum FS
      硬盘存储:文件将直接存储在本地文件系统上。
    • S3

      public static final FileProviderEnum S3
      对象存储:文件将存储在兼容 S3 协议的对象存储服务上。
  • Method Details

    • values

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

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