Code example for MalformedURLException

Methods: printStackTrace

0
	public void loadResource(Resource resource) throws IOException {
		URL url = null;
		try { 
			url = new URL(resource.getURI().toString());
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} 
 
		new JSONMapper().from(url, resource, options);
	} 
 
	@Override 
	public int read() throws IOException { 
		return 0; 
	} 
 
}