public static DecodingResource forEncoding ( String contentEncoding , Resource source ) throws IOException { InputStream stream = decodingStream ( contentEncoding , source ) ; if ( stream == null ) { return null ; } return new DecodingResource ( source , stream ) ; }
Returns a DecodingResource that wraps an existing resource with a decompressor for the given Content - Encoding .