private InputStream decodeStream ( String encoding , InputStream initialStream ) throws IOException { if ( encoding == null ) return initialStream ; if ( "gzip" . equals ( encoding ) ) return new GZIPInputStream ( initialStream ) ; if ( "deflate" . equals ( encoding ) ) return new InflaterInputStream ( initialStream ) ; throw new IOException ( "Unsupported transport encoding " + encoding ) ; }
Decodes a transport stream .