FileDocCategorySizeDatePackage
TokenizerParams.javaAPI DocGlassfish v2 API3721Fri May 04 22:31:06 BST 2007com.sun.appserv.management.util.misc

TokenizerParams

public class TokenizerParams extends Object
Parameters that TokenizerImpl accepts.

Fields Summary
public String
mDelimiters
Delimiters are characters that separate tokens.
public boolean
mMultipleDelimsCountAsOne
When multiple delimiters abut each other, are they all treated as a single delimiter, or as multiples with implied empty tokens between them?
public char
mEscapeChar
The escape char, allowed to be anything, but typically should be BACKSLASH.
public String
mEscapableChars
Characters which may be escaped over and above the standard ones.
public boolean
mEmitInvalidEscapeSequencesLiterally
When an invalid escape sequence is encountered, either an exception may be thrown, or the sequence may be emitted literally.
public static final char
BACKSLASH
public static final char
COMMA
public static final char
DEFAULT_ESCAPE_CHAR
public static final String
DEFAULT_DELIMITERS
Constructors Summary
public TokenizerParams()

	
		
	
	
		mDelimiters					= DEFAULT_DELIMITERS;
		mMultipleDelimsCountAsOne	= true;
		mEscapeChar					= DEFAULT_ESCAPE_CHAR;
		mEscapableChars				= "" + DEFAULT_ESCAPE_CHAR;
		mEmitInvalidEscapeSequencesLiterally	= false;
	
Methods Summary
public voidensureDelimitersEscapable()

		for( int i = 0; i < mDelimiters.length(); ++i )
		{
			final char	delim	= mDelimiters.charAt( i );
			
			if ( mEscapableChars.indexOf( delim ) < 0 )
			{
				mEscapableChars	= mEscapableChars + delim;
			}
		}