Share via


StringTokenizer.NextToken Method

Definition

Overloads

NextToken()

Returns the next token from this string tokenizer.

NextToken(String)

Returns the next token in this string tokenizer's string.

NextToken()

Returns the next token from this string tokenizer.

[Android.Runtime.Register("nextToken", "()Ljava/lang/String;", "GetNextTokenHandler")]
public virtual string? NextToken ();
[<Android.Runtime.Register("nextToken", "()Ljava/lang/String;", "GetNextTokenHandler")>]
abstract member NextToken : unit -> string
override this.NextToken : unit -> string

Returns

the next token from this string tokenizer.

Attributes

Exceptions

if no tokens remain.

Remarks

Returns the next token from this string tokenizer.

Java documentation for java.util.StringTokenizer.nextToken().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

NextToken(String)

Returns the next token in this string tokenizer's string.

[Android.Runtime.Register("nextToken", "(Ljava/lang/String;)Ljava/lang/String;", "GetNextToken_Ljava_lang_String_Handler")]
public virtual string? NextToken (string? delim);
[<Android.Runtime.Register("nextToken", "(Ljava/lang/String;)Ljava/lang/String;", "GetNextToken_Ljava_lang_String_Handler")>]
abstract member NextToken : string -> string
override this.NextToken : string -> string

Parameters

delim
String

the new delimiters.

Returns

the next token, after switching to the new delimiter set.

Attributes

Exceptions

if no tokens remain.

Remarks

Returns the next token in this string tokenizer's string. First, the set of characters considered to be delimiters by this StringTokenizer object is changed to be the characters in the string delim. Then the next token in the string after the current position is returned. The current position is advanced beyond the recognized token. The new delimiter set remains the default after this call.

Java documentation for java.util.StringTokenizer.nextToken(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to