Package anlavn.file

Class Properties

java.lang.Object
anlavn.file.Properties

public class Properties extends Object
The Properties class supports to get value of properties at specific location.
  • Constructor Details

    • Properties

      public Properties(String filePath)
      Open a properties file at specified location.
      Parameters:
      filePath - is location of Properties file, it can be local path in computer or link address. File name extension must be ".properties".
  • Method Details

    • getString

      public String getString(String key)
      Use this method to get a String value from given key.
      Parameters:
      key - a string key in Properties file.
      Returns:
      String value of key in Properties file.
    • getBoolean

      public Boolean getBoolean(String key)
      Use this method to get a Boolean value from given key.
      Parameters:
      key - a string key in Properties file.
      Returns:
      Boolean value of key in Properties file.
    • getInteger

      public Integer getInteger(String key)
      Use this method to get a Integer value from given key.
      Parameters:
      key - a string key in Properties file.
      Returns:
      Integer value of key in Properties file.