|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MediaType>
net.java.sip.communicator.service.neomedia.MediaType
public enum MediaType
The MediaType enumeration contains a list of media types currently known to and handled by the MediaService.
| Enum Constant Summary | |
|---|---|
AUDIO
Represents an AUDIO media type. |
|
VIDEO
Represents a VIDEO media type. |
|
| Method Summary | |
|---|---|
static MediaType |
parseString(String mediaTypeName)
Returns a MediaType value corresponding to the specified mediaTypeName or in other words MediaType.AUDIO for "audio" and MediaType.VIDEO for "video". |
String |
toString()
Returns the name of this MediaType (e.g. |
static MediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MediaType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MediaType AUDIO
public static final MediaType VIDEO
| Method Detail |
|---|
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<MediaType>
public static MediaType parseString(String mediaTypeName)
throws IllegalArgumentException
mediaTypeName - the name that we'd like to parse.
IllegalArgumentException - in case mediaTypeName is not a
valid or currently supported media type.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||