fm.liveswitch.sdp.Bandwidth Class Reference

An SDP bandwidth element. More...

Public Member Functions

 Bandwidth (String bandwidthType, long value)
 Initializes a new instance of the fm.liveswitch.sdp.Bandwidth class. More...
 
String getBandwidthType ()
 Gets the type of bandwidth. More...
 
long getValue ()
 Gets the bandwidth, typically in kilobits per second. More...
 
String toString ()
 Converts this instance to a string. More...
 

Static Public Member Functions

static fm.liveswitch.sdp.Bandwidth parse (String s)
 Creates an fm.liveswitch.sdp.Bandwidth instance from a string. More...
 

Detailed Description

An SDP bandwidth element.

Constructor & Destructor Documentation

◆ Bandwidth()

fm.liveswitch.sdp.Bandwidth.Bandwidth ( String  bandwidthType,
long  value 
)

Initializes a new instance of the fm.liveswitch.sdp.Bandwidth class.

Parameters
bandwidthTypeThe type of bandwidth. See fm.liveswitch.sdp.Bandwidth#getBandwidthType for possible values.
valueThe bandwidth, typically in kilobits per second.

Member Function Documentation

◆ getBandwidthType()

String fm.liveswitch.sdp.Bandwidth.getBandwidthType ( )

Gets the type of bandwidth.

See fm.liveswitch.sdp.Bandwidth#getBandwidthType for possible values.

◆ getValue()

long fm.liveswitch.sdp.Bandwidth.getValue ( )

Gets the bandwidth, typically in kilobits per second.

◆ parse()

static fm.liveswitch.sdp.Bandwidth fm.liveswitch.sdp.Bandwidth.parse ( String  s)
static

Creates an fm.liveswitch.sdp.Bandwidth instance from a string.

Parameters
sThe string to parse.

◆ toString()

String fm.liveswitch.sdp.Bandwidth.toString ( )

Converts this instance to a string.