Class MProperties

java.lang.Object
org.cdlib.mrt.utility.MProperties

public class MProperties extends Object
  • Field Details

  • Constructor Details

    • MProperties

      public MProperties()
  • Method Details

    • getProperties

      public Properties getProperties()
      Returns:
      as Properties
    • loadProperties

      public void loadProperties(LoggerInf logger, String[] propertiesFileNames) throws TException
      Loads properties from one or more properties files.
      Parameters:
      propertiesFileNames - An array of property file names. Names are relative to the base of the classpath.
      Throws:
      TException
    • load

      public void load(InputStream input) throws TException
      Throws:
      TException
    • getProperty

      public String getProperty(String key)
    • getProperty

      public String getProperty(String key, String defaultValue)
    • addProperties

      public void addProperties(String resource) throws TException
      Throws:
      TException
    • setProperty

      public void setProperty(String key, String value)
    • addProperties

      public void addProperties(Properties table)
    • dump

      public void dump(LoggerInf logger, String msg)
      Build string containing display form of Properties contents
      Parameters:
      msg - Display message for this dump
      prop - Properties file to be dumped