Org.Apache.Http.Message.BasicTokenIterator.CreateToken Method
Creates a new token to be returned.

Syntax

[Android.Runtime.Register("createToken", "(Ljava/lang/String;II)Ljava/lang/String;", "GetCreateToken_Ljava_lang_String_IIHandler")]
protected virtual string CreateToken (string value, int start, int end)

Parameters

value
the full header value from which to create a token
start
the index of the first token character
end
the index after the last token character

Returns

Documentation for this section has not yet been entered.

Remarks

Creates a new token to be returned. Called from BasicTokenIterator.FindNext(int) after the token is identified. The default implementation simply calls Java.Lang.String.Substring(int).

If header values are significantly longer than tokens, and some tokens are permanently referenced by the application, there can be problems with garbage collection. A substring will hold a reference to the full characters of the original string and therefore occupies more memory than might be expected. To avoid this, override this method and create a new string instead of a substring.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http.Message
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1