Package org.apache.velocity.util
Class ExtProperties.PropertiesTokenizer
java.lang.Object
java.util.StringTokenizer
org.apache.velocity.util.ExtProperties.PropertiesTokenizer
- All Implemented Interfaces:
Enumeration<Object>
- Enclosing class:
ExtProperties
This class divides into tokens a property value. Token
separator is "," but commas into the property value are escaped
using the backslash in front.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether the object has more tokens.Get next token.Methods inherited from class java.util.StringTokenizer
countTokens, hasMoreElements, nextElement, nextTokenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Field Details
-
DELIMITER
The property delimiter used while parsing (a comma).- See Also:
-
-
Constructor Details
-
PropertiesTokenizer
Constructor.- Parameters:
string- A String.
-
-
Method Details
-
hasMoreTokens
public boolean hasMoreTokens()Check whether the object has more tokens.- Overrides:
hasMoreTokensin classStringTokenizer- Returns:
- True if the object has more tokens.
-
nextToken
Get next token.- Overrides:
nextTokenin classStringTokenizer- Returns:
- A String.
-