Code example for HttpEntity

Methods: consumeContent, getContent

0
			SAXParser sp = spf.newSAXParser();
			XMLReader xr = sp.getXMLReader();
			xr.setContentHandler(dd);
 
			/* Parse the xml-data from our URL. */ 
			xr.parse(new InputSource(entity.getContent()));
 
		} catch (ParserConfigurationException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (SAXException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} finally { 
			entity.consumeContent();
		} 
		return result;
	} 
 
	public List<GeoItem> getListaResult() {
		return listaResult;