예제 #1
0
        /// <summary>
        /// Load the configuration from the given input string. This replaces any
        /// existing configuration.
        /// </summary>
        ///
        /// <param name="input"></param>
        /// <param name="inputName">Used for log messages, etc.</param>
        public void load(String input, String inputName)
        {
            BoostInfoParser parser = new BoostInfoParser();

            parser.read(input, inputName);
            load(parser.getRoot(), inputName);
        }
예제 #2
0
        /// <summary>
        /// Load the configuration from the given config file. This replaces any
        /// existing configuration.
        /// </summary>
        ///
        /// <param name="filePath">The The path of the config file.</param>
        public void load(String filePath)
        {
            BoostInfoParser parser = new BoostInfoParser();

            parser.read(filePath);
            load(parser.getRoot(), filePath);
        }