Code example for Properties

Methods: containsKey, load

0
	 *         the {@link InputStream} 
	 * @throws IOException 
	 *             if the loading fails. 
	 */ 
	private Properties loadProperties(InputStream inputStream) throws IOException {
		Properties properties = new Properties();
		properties.load(inputStream);
		return properties;
	} 
 
	/** 
	 * Start the configuration 
	 *  
	 * @param properties 
	 */ 
	private void startConfiguration(Properties properties) {
 
		if (properties.containsKey(PropertyConfigurator.ROOT_LOGGER_KEY)) {
			Log.i(TAG, "Modern configuration not yet supported");
		} else { 
			Log.i(TAG, "Configure using the simple style (aka classic style)");
			configureSimpleStyle(properties);
		}