Skip navigation links
oracle.iam.policyengine.vo.conditions
Class StringTokenizerTS
java.lang.Object
oracle.iam.policyengine.vo.conditions.StringTokenizerTS
-
public final class StringTokenizerTS
- extends java.lang.Object
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 |
StringTokenizerTS(java.lang.String pathStr, java.lang.String delims, boolean returnDelims)
Tokenize a path string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringTokenizerTS
public StringTokenizerTS(java.lang.String pathStr,
java.lang.String delims,
boolean returnDelims)
- Tokenize a path string.
- Parameters:
pathStr
- - String to be tokenized
delims
- - Delimiter characters to be used for parsing
returnDelims
- - Flag indicating if delimiters should be included as tokens
hasMoreTokens
public final boolean hasMoreTokens(int currentNum)
nextToken
public final java.lang.String nextToken(int currentNum)
Skip navigation links
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.