The StringTokenizer type exposes the following members.

Constructors

  Name Description
Public method StringTokenizer()()()()
Empty Constructor. Will create an empty StringTokenizer with no source, no delimiter, and no tokens. If you want to use this StringTokenizer you will have to call the NewSource(string s) method. You may optionally call the NewDelim(string d) or NewDelim(char[] d) methods if you don't with to use the default delimiter of " " (space).
Public method StringTokenizer(String)
Constructor for StringTokenizer Class. The default delimiter of " " (space) is used.
Public method StringTokenizer(String, array<Char>[]()[][])
Constructor for StringTokenizer Class.
Public method StringTokenizer(String, String)
Constructor for StringTokenizer Class.

Methods

  Name Description
Public method CountTokens
Method to get the number of tokens in this StringTokenizer.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method HasMoreElements
Method to probe for more tokens.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method NewDelim(array<Char>[]()[][])
Method to add or change this Instance's Delimiter string. The source string will remain the same (either empty if you used Empty Constructor, or the previous value of source from the call to a parameterized constructor or NewSource(string s)).
Public method NewDelim(String)
Method to add or change this Instance's Delimiter string. The source string will remain the same (either empty if you used Empty Constructor, or the previous value of source from the call to a parameterized constructor or NewSource(string s)).
Public method NewSource
Method to add or change this Instance's Source string. The delimiter will remain the same (either default of " " (space) or whatever you constructed this StringTokenizer with or added with NewDelim(string d) or NewDelim(char[] d) ).
Public method NextElement
Method to get the next (string)token of this StringTokenizer.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property Delim
Gets the Delimiter string of this StringTokenizer.
Public property Source
Gets the Source string of this Stringtokenizer.

See Also