org.apache.velocity.runtime.configuration

Class Configuration.PropertiesTokenizer

Enclosing Class:
Configuration

(package private) 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

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

Constructor Summary

PropertiesTokenizer(String string)
Constructor.

Method Summary

boolean
hasMoreTokens()
Check whether the object has more tokens.
String
nextToken()
Get next token.

Field Details

DELIMITER

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

Constructor Details

PropertiesTokenizer

public PropertiesTokenizer(String string)
Constructor.
Parameters:
string - A String.

Method Details

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.