Class StringTokenizerTS
java.lang.Object
oracle.iam.policyengine.vo.conditions.StringTokenizerTS
StringTokenizerTS
A thread-safe string tokenizer class that uses StringTokenizer to tokenize the input string and
build a list of tokens.
To keep it simple and thread-safe the user of the class must keep track of where they are in the
list of tokens.
It is intended to be used in a map that is passed into ValueObject.
ValueObject typically does a lot of tokenizing of various path elements. Using this class rather than
StringTokenizer allows ValueObject to re-use the tokenized path elements.
In other words, this class has been created to improve performance for ValueObject processing.
NOTE: This class must be kept thread-safe. It is intended to be accessed by multiple threads
during the evaluation of rule conditions.
NOTE: Instances of this class are immutable. It should be kept that way to keep it simpler to use and understand.
-
Constructor Summary
ConstructorsConstructorDescriptionStringTokenizerTS
(String pathStr, String delims, boolean returnDelims) Tokenize a path string. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
hasMoreTokens
(int currentNum) final String
nextToken
(int currentNum)
-
Constructor Details
-
StringTokenizerTS
Tokenize a path string.- Parameters:
pathStr
- - String to be tokenizeddelims
- - Delimiter characters to be used for parsingreturnDelims
- - Flag indicating if delimiters should be included as tokens
-
-
Method Details
-
hasMoreTokens
public final boolean hasMoreTokens(int currentNum) -
nextToken
-