Methods Summary |
---|
public java.lang.Object | clone()Copies the current instance.
MediaRange retval = new MediaRange();
if (type != null)
retval.type = new String(this.type);
if (subtype != null)
retval.subtype = new String(this.subtype);
return retval;
|
public java.lang.String | encode()Encodes the object.
String encoding = type + Separators.SLASH + subtype;
return encoding;
|
public java.lang.String | getSubtype()Gets the media range subtype field.
return subtype;
|
public java.lang.String | getType()Gets the media range type field.
return type;
|
public void | setSubtype(java.lang.String s)Sets the media range subtype member.
subtype = s;
|
public void | setType(java.lang.String t)Sets the media range type member....
type = t;
|
public java.lang.String | toString()Encodes the object. Calls encode().
return encode();
|