FileDocCategorySizeDatePackage
Lexer.javaAPI DocphoneME MR2 API (J2ME)1956Wed May 02 18:00:42 BST 2007gov.nist.javax.sdp.parser

Lexer

public class Lexer extends LexerCore
Basica lexigographical processor.

Fields Summary
Constructors Summary
public Lexer(String lexerName, String buffer)
Constructs a Lexer byte name to process the requested buffer of text.

param
lexerName the requested processor
param
buffer the data to be processed

	super(lexerName, buffer);

    
Methods Summary
public static java.lang.StringgetFieldName(java.lang.String line)
Gets the firld name.

param
line the text to parse
return
the name of the field to process

	int i = line.indexOf("=");
	if (i == -1)
	    return null;
	else
	    return line.substring(0, i);
    
public voidselectLexer(java.lang.String lexerName)
Selects a new lexer byte name.

param
lexerName the new processor to use