public class BandwidthField extends SDPField implements BandWidth
Modifier and Type | Field and Description |
---|---|
protected int |
bandwidth |
protected String |
bwtype |
CORE_PACKAGE, SDPFIELDS_PACKAGE
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD
Constructor and Description |
---|
BandwidthField() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Get the string encoded version of this object
|
int |
getBandwidth() |
String |
getBwtype() |
String |
getType()
Returns the bandwidth type.
|
int |
getValue()
Returns the bandwidth value measured in kilobits per second.
|
void |
setBandwidth(int b)
Set the bandwidth member
|
void |
setBwtype(String b)
Set the bwtype member
|
void |
setType(String type)
Sets the bandwidth type.
|
void |
setValue(int value)
Sets the bandwidth value.
|
getFieldName, getTypeChar, toString
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprint
clone, dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getTypeChar
protected String bwtype
protected int bandwidth
public String getBwtype()
public int getBandwidth()
public void setBwtype(String b)
public void setBandwidth(int b)
public String encode()
public String getType() throws SdpParseException
getType
in interface BandWidth
SdpParseException
public void setType(String type) throws SdpException
setType
in interface BandWidth
type
- to setSdpException
- if the type is nullpublic int getValue() throws SdpParseException
getValue
in interface BandWidth
SdpParseException
public void setValue(int value) throws SdpException
setValue
in interface BandWidth
value
- to setSdpException
Copyright © 2015. All Rights Reserved.