public static InputStream get ( HttpClient httpClient , URI requestURI ) throws IOException { HttpEntity entity = doGet ( httpClient , requestURI ) ; if ( entity == null ) { return new ByteArrayInputStream ( new byte [ 0 ] ) ; } return entity . getContent ( ) ; }
Performs an HTTP GET using the given client returning an input stream over the response body . The caller MUST close the stream when finished .