C# Class Amazon.S3.Util.AmazonS3Uri

Uri wrapper that can parse out information (bucket, key, region, style) from an S3 URI.
Afficher le fichier Open project: aws/aws-sdk-net Class Usage Examples

Méthodes publiques

Méthode Description
AmazonS3Uri ( Uri uri ) : System

Constructs a parser for the S3 URI specified as a Uri instance.

AmazonS3Uri ( string uri ) : System

Constructs a parser for the S3 URI specified as a string.

IsAmazonS3Endpoint ( Uri uri ) : bool

Checks whether the given URI is a Amazon S3 URI.

IsAmazonS3Endpoint ( string uri ) : bool

Checks whether the given URI is a Amazon S3 URI.

TryParseAmazonS3Uri ( Uri uri, AmazonS3Uri &amazonS3Uri ) : bool

If the given Uri is an AmazonS3Endpoint return true and set the AmazonS3Uri out parameter.

TryParseAmazonS3Uri ( string uri, AmazonS3Uri &amazonS3Uri ) : bool

If the given string is an AmazonS3Endpoint return true and set the AmazonS3Uri out parameter.

Private Methods

Méthode Description
AppendDecoded ( StringBuilder builder, string s, int index ) : void

Decodes the percent-encoded character at the given index in the string and appends the decoded value to the string under construction.

Decode ( string s ) : string

Percent-decodes the given string, with a fast path for strings that are not percent-encoded.

Decode ( string s, int firstPercent ) : string

Percent-decodes the given string.

FromHex ( char c ) : int

Converts a hex character (0-9A-Fa-f) into its corresponding quad value.

Method Details

AmazonS3Uri() public méthode

Constructs a parser for the S3 URI specified as a Uri instance.
public AmazonS3Uri ( Uri uri ) : System
uri System.Uri The S3 URI to be parsed.
Résultat System

AmazonS3Uri() public méthode

Constructs a parser for the S3 URI specified as a string.
public AmazonS3Uri ( string uri ) : System
uri string The S3 URI to be parsed.
Résultat System

IsAmazonS3Endpoint() public static méthode

Checks whether the given URI is a Amazon S3 URI.
public static IsAmazonS3Endpoint ( Uri uri ) : bool
uri System.Uri The S3 URI to be checked.
Résultat bool

IsAmazonS3Endpoint() public static méthode

Checks whether the given URI is a Amazon S3 URI.
public static IsAmazonS3Endpoint ( string uri ) : bool
uri string The S3 URI to be checked.
Résultat bool

TryParseAmazonS3Uri() public static méthode

If the given Uri is an AmazonS3Endpoint return true and set the AmazonS3Uri out parameter.
public static TryParseAmazonS3Uri ( Uri uri, AmazonS3Uri &amazonS3Uri ) : bool
uri System.Uri
amazonS3Uri AmazonS3Uri
Résultat bool

TryParseAmazonS3Uri() public static méthode

If the given string is an AmazonS3Endpoint return true and set the AmazonS3Uri out parameter.
public static TryParseAmazonS3Uri ( string uri, AmazonS3Uri &amazonS3Uri ) : bool
uri string
amazonS3Uri AmazonS3Uri
Résultat bool