org.mobicents.media.server.spi.format
Class Format

java.lang.Object
  extended by org.mobicents.media.server.spi.format.Format
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AudioFormat, VideoFormat

public class Format
extends Object
implements Cloneable

Media format descriptor.

Author:
kulikov

Constructor Summary
Format(EncodingName name)
          Creates new descriptor.
 
Method Summary
 Format clone()
           
 EncodingName getName()
          Gets the encoding name.
 Text getOptions()
          Gets options
 boolean matches(Format fmt)
          Compares two format descriptors.
 void setName(EncodingName name)
          Modifies encoding name.
 void setOptions(Text options)
          Modify options.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Format

public Format(EncodingName name)
Creates new descriptor.

Parameters:
name - the encoding name
Method Detail

getName

public EncodingName getName()
Gets the encoding name.

Returns:
the encoding name.

setName

public void setName(EncodingName name)
Modifies encoding name.

Parameters:
name - new encoding name.

getOptions

public Text getOptions()
Gets options

Returns:
options as text.

setOptions

public void setOptions(Text options)
Modify options.

Parameters:
options - new options.

toString

public String toString()
Overrides:
toString in class Object

matches

public boolean matches(Format fmt)
Compares two format descriptors.

Parameters:
fmt - the another format descriptor
Returns:

clone

public Format clone()
Overrides:
clone in class Object


Copyright © 2011. All Rights Reserved.