Package org.apache.commons.collections
Class ExtendedProperties.PropertiesTokenizer
java.lang.Object
java.util.StringTokenizer
org.apache.commons.collections.ExtendedProperties.PropertiesTokenizer
- All Implemented Interfaces:
Enumeration<Object>
- Enclosing class:
- ExtendedProperties
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 TypeMethodDescriptionboolean
Check whether the object has more tokens.Get next token.Methods inherited from class java.util.StringTokenizer
countTokens, hasMoreElements, nextElement, nextToken
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
hasMoreTokens
in classStringTokenizer
- Returns:
- True if the object has more tokens.
-
nextToken
Get next token.- Overrides:
nextToken
in classStringTokenizer
- Returns:
- A String.
-