Class Properties

java.lang.Object
com.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()
      Create a default Properties file.
      See Also:
    • Properties

      public Properties(String filePath)
      Create a properties file at location filePath.
      Parameters:
      filePath - is specific location of Properties file, file name extension must be ".properties".
  • Method Details

    • setProperties

      public final void setProperties(String filePath)
      Use this method to setup Properties file location.
      Parameters:
      filePath - is specific location of Properties file, file name extension must be ".properties".
      See Also:
    • 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:
      a string value of key in Properties file.