org.apache.velocity.runtime.configuration

Class Configuration.PropertiesTokenizer

class Configuration.PropertiesTokenizer extends 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
static StringDELIMITER
The property delimiter used while parsing (a comma).
Constructor Summary
PropertiesTokenizer(String string)
Constructor.
Method Summary
booleanhasMoreTokens()
Check whether the object has more tokens.
StringnextToken()
Get next token.

Field Detail

DELIMITER

static final String DELIMITER
The property delimiter used while parsing (a comma).

Constructor Detail

PropertiesTokenizer

public PropertiesTokenizer(String string)
Constructor.

Parameters: string A String.

Method Detail

hasMoreTokens

public boolean hasMoreTokens()
Check whether the object has more tokens.

Returns: True if the object has more tokens.

nextToken

public String nextToken()
Get next token.

Returns: A String.

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.