Getting InputStream with RestTemplate
<p>I am using URL class to read an InputStream from it. Is there any way I can use RestTemplate for this?</p>

<pre><code>InputStream input = new URL(url).openStream();
JsonReader reader = new JsonReader(new InputStreamReader(input, StandardCharsets.UTF_8.displayName())); 
</code></pre>

<p>How can I get <code>InputStream</code>  with <code>RestTemplate</code> instead of using <code>URL</code>?</p>