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

InformationFieldParser

public class InformationFieldParser extends SDPParser
Information field parser.
version
1.0

Fields Summary
Constructors Summary
public InformationFieldParser(String informationField)
Creates new InformationFieldParser.

param
informationField the initial information field

        lexer = new Lexer("charLexer", informationField);
    
protected InformationFieldParser()
Default constructor.

        super();
    
Methods Summary
public InformationFieldinformationField()
Parse the information field.

return
the parsed information field
exception
ParseException if a parsing error occurs

        lexer.match('i");
        lexer.SPorHT();
        lexer.match('=");
        lexer.SPorHT();

        InformationField informationField = new InformationField();
        String rest = lexer.getRest(); 
        informationField.setInformation(rest.trim());

        return informationField;
    
public SDPFieldparse()
Perform the information field parsing

return
the parsed information field
exception
ParseException if a parsing error occurs

 
        return informationField();