io/src/main/java/com/stanfy/enroscar/io/IoUtils.java
public static InputStream getUncompressedInputStream(final URLConnection connection) throws IOException {
    final InputStream source = connection.getInputStream();
    final String encoding = connection.getContentEncoding();
    return getUncompressedInputStream(encoding, source);
  }
public static InputStream getUncompressedInputStream(final URLConnection connection) throws IOException {
    final InputStream source = connection.getInputStream();
    final String encoding = connection.getContentEncoding();
    return getUncompressedInputStream(encoding, source);
  }
public static InputStream getUncompressedInputStream ( final URLConnection connection ) throws IOException { final InputStream source = connection . getInputStream ( ) ; final String encoding = connection . getContentEncoding ( ) ; return getUncompressedInputStream ( encoding , source ) ; }
Gets stream of uncompressed bytes for the {@link URLConnection} wrapping its input stream
according to what is defined in its content encoding.
Supported encodings: {@link #ENCODING_GZIP}, {@link #ENCODING_DEFLATE}.

@param connection given URL connection
@return an uncompressed {@link InputStream} for the given {@link URLConnection}.
@see #getUncompressedInputStream(String, java.io.InputStream)
Gets stream of uncompressed bytes for the { @link URLConnection } wrapping its input stream according to what is defined in its content encoding . Supported encodings : { @link #ENCODING_GZIP } { @link #ENCODING_DEFLATE } .