title: Is there a FileReader equivalent for a URL in Java?
body: <p>Consider the following.</p>
  
  <pre><code>val br = new BufferedReader(new FileReader(inputFileName))
  </code></pre>
  
  <p>But instead of a file, I want to read a file directly from the web, that is, from ftp or http. So, what would be the equivalent for reading from a URL?</p>