Class PropertyReader


  • public class PropertyReader
    extends java.lang.Object
    Class Reads the properties.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyReader()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getProperty​(java.lang.String key)
      Gets property.
      static java.util.Properties loadSystemProperties()
      Loads System properties .
      static void setProperty​(java.lang.String key, java.lang.String val)
      Sets property.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyReader

        public PropertyReader()
    • Method Detail

      • loadSystemProperties

        public static java.util.Properties loadSystemProperties()
        Loads System properties .
        Returns:
        Object of Properties.
        Throws:
        java.io.IOException - - If any exception occurred during IO operation.
      • getProperty

        public static java.lang.String getProperty​(java.lang.String key)
        Gets property.
        Parameters:
        key - String value representing Key of property.
        Returns:
        String value of property.
      • setProperty

        public static void setProperty​(java.lang.String key,
                                       java.lang.String val)
        Sets property.
        Parameters:
        key - String value representing Key of property.