public HttpResponse getStreamResponse(final Song song) throws IOException, GroovesharkException {
return getStreamResponse(song.getId());
}
public HttpResponse getStreamResponse(final long songId) throws IOException, GroovesharkException {
HttpResponse response = httpClient.execute(new HttpGet(getStreamUrl(songId).toString()));
int statusCode = response.getStatusLine().getStatusCode();
if (statusCode != 200) {
EntityUtils.consumeQuietly(response.getEntity());
throw new IOException("API returned " + statusCode + " status code");
}