org.lastbamboo.common.sdp.fields
Class BandwidthField
java.lang.Object
org.lastbamboo.common.sdp.GenericObject
org.lastbamboo.common.sdp.fields.SDPObject
org.lastbamboo.common.sdp.fields.SDPField
org.lastbamboo.common.sdp.fields.BandwidthField
- All Implemented Interfaces:
- Serializable, Cloneable, BandWidth, Field, SDPFieldNames
public class BandwidthField
- extends SDPField
- implements BandWidth
Bandwidth field of a SDP header.
- Version:
- JSR141-PUBLIC-REVIEW (Subject to change)
- Author:
- Olivier Deruelle , M. Ranganathan
This code is in the public domain.
- See Also:
- Serialized Form
| Fields inherited from class org.lastbamboo.common.sdp.GenericObject |
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation |
| Fields inherited from interface org.lastbamboo.common.sdp.api.BandWidth |
AS, CT |
| Fields inherited from interface org.lastbamboo.common.sdp.fields.SDPFieldNames |
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 |
| Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject |
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, merge, replace, replace, replace, replace, sprint |
| Methods inherited from class org.lastbamboo.common.sdp.GenericObject |
Assert, clone, dbgPrint, dbgPrint, debugDump, getIndentation, getMatcher, isMySubclass, makeClone, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint |
bwtype
protected String bwtype
bandwidth
protected int bandwidth
BandwidthField
public BandwidthField()
getBwtype
public String getBwtype()
getBandwidth
public int getBandwidth()
setBwtype
public void setBwtype(String b)
- Set the bwtype member
setBandwidth
public void setBandwidth(int b)
- Set the bandwidth member
encode
public String encode()
- Get the string encoded version of this object
- Specified by:
encode in class SDPField
- Since:
- v1.0
getType
public String getType()
throws SdpParseException
- Returns the bandwidth type.
- Specified by:
getType in interface BandWidth
- Returns:
- type
- Throws:
SdpParseException
setType
public void setType(String type)
throws SdpException
- Sets the bandwidth type.
- Specified by:
setType in interface BandWidth
- Parameters:
type - to set
- Throws:
SdpException - if the type is null
getValue
public int getValue()
throws SdpParseException
- Returns the bandwidth value measured in kilobits per second.
- Specified by:
getValue in interface BandWidth
- Returns:
- the bandwidth value
- Throws:
SdpParseException
setValue
public void setValue(int value)
throws SdpException
- Sets the bandwidth value.
- Specified by:
setValue in interface BandWidth
- Parameters:
value - to set
- Throws:
SdpException
Copyright © 2013 LittleShoot. All Rights Reserved.