|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sdp.fields.SDPObject
gov.nist.javax.sdp.fields.SDPField
gov.nist.javax.sdp.fields.MediaField
public class MediaField
Media field SDP header.
フィールドの概要 |
---|
インタフェース gov.nist.javax.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 |
コンストラクタの概要 | |
---|---|
MediaField()
|
メソッドの概要 | |
---|---|
java.lang.String |
encode()
Get the string encoded version of this object |
java.util.Vector |
getFormats()
|
java.lang.String |
getMedia()
|
java.util.Vector |
getMediaFormats(boolean create)
Returns an Vector of the media formats supported by this description. |
int |
getMediaPort()
Returns the port of the media defined by this description |
java.lang.String |
getMediaType()
Returns the type (audio,video etc) of the media defined by this description. |
int |
getNports()
|
int |
getPort()
|
int |
getPortCount()
Returns the number of ports associated with this media description |
java.lang.String |
getProto()
|
java.lang.String |
getProtocol()
Returns the protocol over which this media should be transmitted. |
void |
setFormats(java.util.Vector formats)
Set the fmt member |
void |
setMedia(java.lang.String m)
Set the media member |
void |
setMediaFormats(java.util.Vector mediaFormats)
Adds a media format to the media description. |
void |
setMediaPort(int port)
Sets the port of the media defined by this description |
void |
setMediaType(java.lang.String mediaType)
Sets the type (audio,video etc) of the media defined by this description. |
void |
setNports(int n)
Set the nports member |
void |
setPort(int p)
Set the port member |
void |
setPortCount(int portCount)
Sets the number of ports associated with this media description. |
void |
setProto(java.lang.String p)
Set the proto member |
void |
setProtocol(java.lang.String protocol)
Sets the protocol over which this media should be transmitted. |
クラス gov.nist.javax.sdp.fields.SDPField から継承されたメソッド |
---|
getFieldName, getTypeChar, toString |
クラス gov.nist.javax.sdp.fields.SDPObject から継承されたメソッド |
---|
clone, dbgPrint, debugDump, equals, match, merge, replace, replace, replace, replace |
クラス gov.nist.core.GenericObject から継承されたメソッド |
---|
debugDump, getClassFromName, getMatcher, isMySubclass, setMatcher |
クラス java.lang.Object から継承されたメソッド |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース javax.sdp.Media から継承されたメソッド |
---|
toString |
インタフェース javax.sdp.Field から継承されたメソッド |
---|
clone, getTypeChar |
コンストラクタの詳細 |
---|
public MediaField()
メソッドの詳細 |
---|
public java.lang.String getMedia()
public int getPort()
public int getNports()
public java.lang.String getProto()
public java.util.Vector getFormats()
public void setMedia(java.lang.String m)
public void setPort(int p)
public void setNports(int n)
public void setProto(java.lang.String p)
public void setFormats(java.util.Vector formats)
public java.lang.String getMediaType() throws javax.sdp.SdpParseException
javax.sdp.Media
内の getMediaType
javax.sdp.SdpParseException
public void setMediaType(java.lang.String mediaType) throws javax.sdp.SdpException
javax.sdp.Media
内の setMediaType
mediaType
- to set
javax.sdp.SdpException
- if mediaType is nullpublic int getMediaPort() throws javax.sdp.SdpParseException
javax.sdp.Media
内の getMediaPort
javax.sdp.SdpParseException
public void setMediaPort(int port) throws javax.sdp.SdpException
javax.sdp.Media
内の setMediaPort
port
- to set
javax.sdp.SdpException
public int getPortCount() throws javax.sdp.SdpParseException
javax.sdp.Media
内の getPortCount
javax.sdp.SdpParseException
public void setPortCount(int portCount) throws javax.sdp.SdpException
javax.sdp.Media
内の setPortCount
portCount
- portCount - the integer port count.
javax.sdp.SdpException
public java.lang.String getProtocol() throws javax.sdp.SdpParseException
javax.sdp.Media
内の getProtocol
javax.sdp.SdpParseException
public void setProtocol(java.lang.String protocol) throws javax.sdp.SdpException
javax.sdp.Media
内の setProtocol
protocol
- - the String protocol, e.g. RTP/AVP.
javax.sdp.SdpException
- if the protocol is nullpublic java.util.Vector getMediaFormats(boolean create) throws javax.sdp.SdpParseException
javax.sdp.Media
内の getMediaFormats
create
- to set
javax.sdp.SdpException
javax.sdp.SdpParseException
public void setMediaFormats(java.util.Vector mediaFormats) throws javax.sdp.SdpException
javax.sdp.Media
内の setMediaFormats
mediaFormats
- the format to add.
javax.sdp.SdpException
- if the vector is nullpublic java.lang.String encode()
SDPField
内の encode
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |