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

URIFieldParser

public class URIFieldParser extends SDPParser
URI Field Parser.
version
JAIN-SIP-1.1 a href="{@docRoot}/uncopyright.html">This code is in the public domain.

Fields Summary
Constructors Summary
public URIFieldParser(String uriField)
Creates new URIFieldParser.

param
uriField the URI filed to be parsed

        lexer = new Lexer("charLexer", uriField);
    
protected URIFieldParser()
Default constructor.

        super();
    
Methods Summary
public SDPFieldparse()
Gets the URI field.

return
URIField
exception
ParseException if a parsing error occurs

        return uriField();
    
public URIFielduriField()
Gets the URI field.

return
URIField
exception
ParseException if a parsing error occurs

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

        URIField uriField = new URIField();
        String rest = lexer.getRest().trim(); 
        uriField.setURI(rest);
        return uriField;