Confused. How can I grab hold of the returned InputStream?
<p>I'm trying to fetch some XML and eventually use it as a String. Here's my two methods, the former of which calls the latter. </p>

<pre><code>public static void getAllXML(String url) throws XmlPullParserException, IOException, URISyntaxException{ 
    XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
    factory.setNamespaceAware(true);

    XmlPullParser parser = factory.newPullParser(); 
    parser.setInput(new InputStreamReader(getUrlData(url)));  

    XmlUtils.beginDocument(parser,"results");

    int eventType = parser.getEventType();
    do{
        XmlUtils.nextElement(parser);
        parser.next();
        eventType = parser.getEventType();
        if(eventType == XmlPullParser.TEXT){
            Log.d("test",parser.getText());
        }
    } while (eventType != XmlPullParser.END_DOCUMENT) ;       

}

public static InputStream getUrlData(String url) throws URISyntaxException, ClientProtocolException, IOException {
    DefaultHttpClient client = new DefaultHttpClient();
    HttpGet method = new HttpGet(new URI(url));
    HttpResponse res = client.execute(method);
    return  res.getEntity().getContent();

}
</code></pre>

<p>Then I use a method which takes an <code>InputStream</code> and converts it to a <code>String</code>. But how do I grab hold of the <code>InputStream</code> returned by the <code>getUrlData</code> method so I can call <code>convertStreamToString(myInputStream)</code>?</p>
