Enum Class PropertiesProvider

java.lang.Object
java.lang.Enum<PropertiesProvider>
electrostatic4j.snaploader.platform.util.PropertiesProvider
All Implemented Interfaces:
Serializable, Comparable<PropertiesProvider>, Constable

public enum PropertiesProvider extends Enum<PropertiesProvider>
Provides platform-dependent system properties for the current running machine.
  • Enum Constant Details

    • USER_DIR

      public static final PropertiesProvider USER_DIR
      Provides a string representation for the absolute directory of the current user directory.
    • USER_HOME

      public static final PropertiesProvider USER_HOME
      Provides a string representation for the absolute directory of the user home.
    • FILE_SEPARATOR

      public static final PropertiesProvider FILE_SEPARATOR
      Provides a string representation for the platform-dependent filesystem separator.
    • ZIP_FILE_SEPARATOR

      public static final PropertiesProvider ZIP_FILE_SEPARATOR
      Provides a string representation for the filesystem separator of the Zip specification.
    • JAVA_HOME

      public static final PropertiesProvider JAVA_HOME
      Provides a string representation for the absolute path of the java interpreter binary.
  • Method Details

    • values

      public static PropertiesProvider[] 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 PropertiesProvider 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
    • getSystemProperty

      public String getSystemProperty()
      Retrieves the platform-dependent property.
      Returns:
      a string representation for the platform-dependent property