StringTokenizer Constructors

Definition

Overloads

StringTokenizer(String)

Constructs a string tokenizer for the specified string.

StringTokenizer(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

StringTokenizer(String, String)

Constructs a string tokenizer for the specified string.

StringTokenizer(String, String, Boolean)

Constructs a string tokenizer for the specified string.

StringTokenizer(String)

Constructs a string tokenizer for the specified string.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public StringTokenizer (string? str);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Util.StringTokenizer : string -> Java.Util.StringTokenizer

Parameters

str
String

a string to be parsed.

Attributes

Remarks

Constructs a string tokenizer for the specified string. The tokenizer uses the default delimiter set, which is "&nbsp;&#92;t&#92;n&#92;r&#92;f": the space character, the tab character, the newline character, the carriage-return character, and the form-feed character. Delimiter characters themselves will not be treated as tokens.

Java documentation for java.util.StringTokenizer.StringTokenizer(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

StringTokenizer(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected StringTokenizer (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.StringTokenizer : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.StringTokenizer

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

StringTokenizer(String, String)

Constructs a string tokenizer for the specified string.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public StringTokenizer (string? str, string? delim);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Java.Util.StringTokenizer : string * string -> Java.Util.StringTokenizer

Parameters

str
String

a string to be parsed.

delim
String

the delimiters.

Attributes

Remarks

Constructs a string tokenizer for the specified string. The characters in the delim argument are the delimiters for separating tokens. Delimiter characters themselves will not be treated as tokens.

Note that if delim is null, this constructor does not throw an exception. However, trying to invoke other methods on the resulting StringTokenizer may result in a NullPointerException.

Java documentation for java.util.StringTokenizer.StringTokenizer(java.lang.String, 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

StringTokenizer(String, String, Boolean)

Constructs a string tokenizer for the specified string.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Z)V", "")]
public StringTokenizer (string? str, string? delim, bool returnDelims);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Z)V", "")>]
new Java.Util.StringTokenizer : string * string * bool -> Java.Util.StringTokenizer

Parameters

str
String

a string to be parsed.

delim
String

the delimiters.

returnDelims
Boolean

flag indicating whether to return the delimiters as tokens.

Attributes

Remarks

Constructs a string tokenizer for the specified string. All characters in the delim argument are the delimiters for separating tokens.

If the returnDelims flag is true, then the delimiter characters are also returned as tokens. Each delimiter is returned as a string of length one. If the flag is false, the delimiter characters are skipped and only serve as separators between tokens.

Note that if delim is null, this constructor does not throw an exception. However, trying to invoke other methods on the resulting StringTokenizer may result in a NullPointerException.

Java documentation for java.util.StringTokenizer.StringTokenizer(java.lang.String, java.lang.String, boolean).

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