org.jnetpcap.protocol.voip
Enum Rtp.PayloadType

java.lang.Object
  extended by java.lang.Enum<Rtp.PayloadType>
      extended by org.jnetpcap.protocol.voip.Rtp.PayloadType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Rtp.PayloadType>
Enclosing class:
Rtp

public static enum Rtp.PayloadType
extends java.lang.Enum<Rtp.PayloadType>

Constant payload types that have been defined for type field.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
CN
          13 -.
DVI4_16K
          6 -.
DVI4_8K
          5 -.
G711
          0 - PCMU is specified in CCITT/ITU-T recommendation G.711
G721
          2 -.
G722
          9 -.
G723
          4 -.
G728
          15 -.
GSM
          3 -.
L16_1CH
          11 -.
L16_2CH
          10 -.
LPC
          7 -.
MPA
          14 -.
PCMA
          8 -.
QCELP
          12 -.
RESERVED1
          1 -.
RESERVED2
          16.
 
Method Summary
static Rtp.PayloadType valueOf(int type)
          Looks up the payload type as integer and returns a constant.
static Rtp.PayloadType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Rtp.PayloadType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CN

public static final Rtp.PayloadType CN
13 -.


DVI4_16K

public static final Rtp.PayloadType DVI4_16K
6 -.


DVI4_8K

public static final Rtp.PayloadType DVI4_8K
5 -.


G711

public static final Rtp.PayloadType G711
0 - PCMU is specified in CCITT/ITU-T recommendation G.711


G721

public static final Rtp.PayloadType G721
2 -.


G722

public static final Rtp.PayloadType G722
9 -.


G723

public static final Rtp.PayloadType G723
4 -.


G728

public static final Rtp.PayloadType G728
15 -.


GSM

public static final Rtp.PayloadType GSM
3 -.


L16_1CH

public static final Rtp.PayloadType L16_1CH
11 -.


L16_2CH

public static final Rtp.PayloadType L16_2CH
10 -.


LPC

public static final Rtp.PayloadType LPC
7 -.


MPA

public static final Rtp.PayloadType MPA
14 -.


PCMA

public static final Rtp.PayloadType PCMA
8 -.


QCELP

public static final Rtp.PayloadType QCELP
12 -.


RESERVED1

public static final Rtp.PayloadType RESERVED1
1 -.


RESERVED2

public static final Rtp.PayloadType RESERVED2
16.

Method Detail

values

public static Rtp.PayloadType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Rtp.PayloadType c : Rtp.PayloadType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Rtp.PayloadType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

valueOf

public static Rtp.PayloadType valueOf(int type)
Looks up the payload type as integer and returns a constant.

Parameters:
type - value of the payload field
Returns:
constant representing the payload type