org.mobicents.media.server.impl.rtp.sdp
Class RTPFormatParser
java.lang.Object
org.mobicents.media.Format
org.mobicents.media.server.impl.rtp.sdp.RTPFormatParser
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public abstract class RTPFormatParser
- extends org.mobicents.media.Format
- Author:
- Oleg Kulikov
- See Also:
- Serialized Form
| Fields inherited from class org.mobicents.media.Format |
ANY, byteArray, clz, dataType, encoding, FALSE, FORMAT_HASHMAP_DEFAULT_INITIAL_CAPACITY, FORMAT_HASHMAP_DEFAULT_LOAD_FACTOR, formatArray, intArray, NOT_SPECIFIED, shortArray, TRUE |
|
Constructor Summary |
RTPFormatParser(java.lang.String encodingName)
Creates a new instance of RTPFormat |
|
Method Summary |
abstract java.util.Collection<javax.sdp.Attribute> |
encode()
|
static java.util.HashMap<java.lang.Integer,org.mobicents.media.Format> |
getFormats(javax.sdp.MediaDescription md)
|
static java.util.HashMap<java.lang.Integer,org.mobicents.media.Format> |
getFormats(javax.sdp.SessionDescription sdp,
java.lang.String mediaType)
|
int |
getPayloadType()
|
java.lang.String |
toSdp()
|
| Methods inherited from class org.mobicents.media.Format |
clone, copy, equals, getDataType, getEncoding, hashCode, intersects, isSameEncoding, isSameEncoding, matches, relax, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
RTPFormatParser
public RTPFormatParser(java.lang.String encodingName)
- Creates a new instance of RTPFormat
getPayloadType
public int getPayloadType()
getFormats
public static java.util.HashMap<java.lang.Integer,org.mobicents.media.Format> getFormats(javax.sdp.SessionDescription sdp,
java.lang.String mediaType)
throws javax.sdp.SdpParseException,
javax.sdp.SdpException
- Throws:
javax.sdp.SdpParseException
javax.sdp.SdpException
getFormats
public static java.util.HashMap<java.lang.Integer,org.mobicents.media.Format> getFormats(javax.sdp.MediaDescription md)
throws javax.sdp.SdpParseException,
javax.sdp.SdpException
- Throws:
javax.sdp.SdpParseException
javax.sdp.SdpException
toSdp
public java.lang.String toSdp()
encode
public abstract java.util.Collection<javax.sdp.Attribute> encode()
Copyright © 2009. All Rights Reserved.