public static function decodeKey($key, $encoding)
    {
        if ($encoding == "") {
            return $key;
        }

        if ($encoding == "url") {
            return rawurldecode($key);
        } else {
            throw new OssException("Unrecognized encoding type: " . $encoding);
        }
    }
public static function decodeKey($key, $encoding)
    {
        if ($encoding == "") {
            return $key;
        }

        if ($encoding == "url") {
            return rawurldecode($key);
        } else {
            throw new OssException("Unrecognized encoding type: " . $encoding);
        }
    }
public static function decodeKey ( $ key , $ encoding ) { if ( $ encoding == "" ) { return $ key ; } if ( $ encoding == "url" ) { return rawurldecode ( $ key ) ; } else { throw new OssException ( "Unrecognized encoding type: " . $ encoding ) ; } }
Decode key based on the encoding type

@param string $key
@param string $encoding
@return string
Decode key based on the encoding type