Code example for FileReader

Methods: close

0
 
	@SuppressWarnings("unchecked") 
	protected void loadBindings(String jsonPath)
		throws ParseException, IOException 
	{ 
		FileReader reader = new FileReader(jsonPath);
		Map<String, Object> properties = (Map<String, Object>)
			JSONValue.parseWithException(reader);
		reader.close();
 
		Map<String, Object> proxies = jsonUtils.getStringMap(properties, "proxies");
		Map<String, Object> modules = jsonUtils.getStringMap(properties, "modules");
 
		this.proxies.putAll(proxies);
		mergeModules(modules);
	} 
 
	@SuppressWarnings("unchecked") 
	protected void loadTitaniumBindings() 
		throws ParseException, IOException, URISyntaxException 
	{