narayana1208 / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Support InputStream #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please support InputStream and GZIPInputStream instead of String for 
gson.fromJson(response, listType);

Thanks, :-)

Original issue reported on code.google.com by david.jonathan.nelson on 22 Jan 2010 at 8:16

GoogleCodeExporter commented 9 years ago
If you wrap your InputStream in an InputStreamReader, you're good!
  InputStream myInputStream = ...
  Reader reader = new InputStreamReader(myInputStream);
  gson.fromJson(reader, listType);

Original comment by limpbizkit on 20 Aug 2010 at 5:50