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

URIField

public class URIField extends SDPField
Implementation of URI field. This code is in the public domain.

Fields Summary
protected String
urlString
URL string field contents.
Constructors Summary
public URIField()
Default constructor.

	super(URI_FIELD);
    
Methods Summary
public java.lang.Objectclone()
Copies the current instance.

return
the copy of this object

	URIField retval = new URIField();
	retval.urlString = this.urlString;
	return retval;
    
public java.lang.Stringencode()
Gets the string encoded version of this object.

return
the encoded string of object contents
since
v1.0

	if (urlString != null) {
	    return URI_FIELD + urlString + Separators.NEWLINE;
	} else return "";
    
public java.lang.Stringget()
Gets the URL field contents.

return
the URL string

	return urlString;
    
public java.lang.StringgetURI()
Gets the URL field contents.

return
the URL string

	return urlString;
    
public voidsetURI(java.lang.String uri)
Sets the URL string contents.

param
uri the URL string

	this.urlString = uri;