Class JavaProps

java.lang.Object
gov.nasa.pds.registry.common.util.JavaProps

public class JavaProps extends Object
Utility class to read java properties files.
Author:
karpenko
  • Constructor Details

    • JavaProps

      public JavaProps(String filePath) throws Exception
      Constructor
      Parameters:
      filePath - Java properties file
      Throws:
      Exception - an exception
  • Method Details

    • getBoolean

      public Boolean getBoolean(String key) throws Exception
      Get boolean property.
      Parameters:
      key - property key / name
      Returns:
      boolean value
      Throws:
      Exception - an exception
    • getProperty

      public String getProperty(String key)
      Get string property.
      Parameters:
      key - property key / name
      Returns:
      String value