Package org.sentrysoftware.jawk.jrt
Class RegexTokenizer
java.lang.Object
org.sentrysoftware.jawk.jrt.RegexTokenizer
- All Implemented Interfaces:
Enumeration<Object>
Similar to StringTokenizer, except that tokens are delimited
by a regular expression.
- Author:
- Danny Daglas
-
Constructor Summary
ConstructorDescriptionRegexTokenizer
(String input, String delimitterRegexPattern) Construct a RegexTokenizer. -
Method Summary
-
Constructor Details
-
RegexTokenizer
Construct a RegexTokenizer.- Parameters:
input
- The input string to tokenize.delimitterRegexPattern
- The regular expression delineating tokens within the input string.
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<Object>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<Object>
-