Methods Summary |
---|
public java.lang.Object | clone()Copies the current instance.
BandwidthField bf = new BandwidthField();
bf.bwtype = bwtype;
bf.bandwidth = bandwidth;
return bf;
|
public java.lang.String | encode()Gets the string encoded version of this object.
String encoded_string = BANDWIDTH_FIELD;
if (bwtype != null) encoded_string += bwtype + Separators.COLON;
return encoded_string + bandwidth + Separators.NEWLINE;
|
public int | getBandwidth()Gets the current bandwith.
return bandwidth;
|
public java.lang.String | getBwtype()Gets the current bandwidth type.
return bwtype;
|
public java.lang.String | getType()Returns the bandwidth type.
return getBwtype();
|
public int | getValue()Returns the bandwidth value measured in kilobits per second.
return getBandwidth();
|
public void | setBandwidth(int b)Sets the bandwidth member.
bandwidth = b;
|
public void | setBwtype(java.lang.String b)Sets the bandwidth type member.
bwtype = b;
|
public void | setType(java.lang.String type)Sets the bandwidth type.
if (type == null)
throw new SdpException("The type is null");
else setBwtype(type);
|
public void | setValue(int value)Sets the bandwidth value.
setBandwidth(value);
|