Package org.apache.commons.collections
Class ExtendedProperties.PropertiesTokenizer
- java.lang.Object
-
- java.util.StringTokenizer
-
- org.apache.commons.collections.ExtendedProperties.PropertiesTokenizer
-
- All Implemented Interfaces:
java.util.Enumeration<java.lang.Object>
- Enclosing class:
- ExtendedProperties
static class ExtendedProperties.PropertiesTokenizer extends java.util.StringTokenizer
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 Modifier and Type Field Description (package private) static java.lang.String
DELIMITER
The property delimiter used while parsing (a comma).
-
Constructor Summary
Constructors Constructor Description PropertiesTokenizer(java.lang.String string)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreTokens()
Check whether the object has more tokens.java.lang.String
nextToken()
Get next token.-
Methods inherited from class java.util.StringTokenizer
countTokens, hasMoreElements, nextElement, nextToken
-
-
-
-
Field Detail
-
DELIMITER
static final java.lang.String DELIMITER
The property delimiter used while parsing (a comma).- See Also:
- Constant Field Values
-
-
Method Detail
-
hasMoreTokens
public boolean hasMoreTokens()
Check whether the object has more tokens.- Overrides:
hasMoreTokens
in classjava.util.StringTokenizer
- Returns:
- True if the object has more tokens.
-
nextToken
public java.lang.String nextToken()
Get next token.- Overrides:
nextToken
in classjava.util.StringTokenizer
- Returns:
- A String.
-
-