title: What Java library can retrieve data from a remote URL, while handing various content encodings?
body: <p>I've rolled my own code to retrieve data from remote URLs using a HttpURLConnection.  First I had to write custom code to handle gzipped content encoding, now I am encountering web servers that are serving up RSS feeds with a chunked Transfer-Encoding.  I'm finding myself reimplementing a bunch of stuff that I'm sure has already been done.</p>
  
  <p>I'm sure there is some library that will automatically handle the various ways that data can be returned from a web server and just give me an InputStream, can anyone recommend one (must be LGPL or similar license)?</p>
  
  <p>Ideally I'm looking for a library that is currently maintained and which has a modern well-designed API.</p>
  
  <p>In some cases I won't know the Content-type that will be returned in advance, and so may need to handle what is returned differently depending on this.</p>