test_class.file: servers/media/core/server-impl/src/test/java/org/mobicents/media/server/impl/rtp/sdp/RTPAudioFormatTest.java
test_class.identifier: RTPAudioFormatTest
test_case.body: @Test
      public void testEncodePCMU() throws Exception {
          Collection<Attribute> attributes = AVProfile.PCMU.encode();
          assertEquals(1, attributes.size());
          Attribute rtpmap = getAttribute(attributes, 0);
          assertEquals("rtpmap",rtpmap.getName());
          assertEquals("0 pcmu/8000",rtpmap.getValue());
      }
test_case.class_method_signature: RTPAudioFormatTest.testEncodePCMU()
test_case.full_signature: @Test public void testEncodePCMU()
test_case.identifier: testEncodePCMU
test_case.invocations: encode assertEquals size getAttribute assertEquals getName assertEquals getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEncodePCMU()
focal_class.declarator: payloadType
focal_class.modifier: private
focal_class.original_string: private int payloadType;
focal_class.type: int
focal_class.var_name: payloadType
focal_class.declarator: sdpFactory = SdpFactory.getInstance()
focal_class.modifier: private final static
focal_class.original_string: private final static SdpFactory sdpFactory = SdpFactory.getInstance();
focal_class.type: SdpFactory
focal_class.var_name: sdpFactory
focal_class.file: servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/rtp/sdp/RTPAudioFormat.java
focal_class.identifier: RTPAudioFormat
focal_class.interfaces: implements RTPFormat
focal_class.class_method_signature: RTPAudioFormat.RTPAudioFormat(int payload, String encodingName)
focal_class.full_signature: public  RTPAudioFormat(int payload, String encodingName)
focal_class.identifier: RTPAudioFormat
focal_class.modifiers: public
focal_class.parameters: (int payload, String encodingName)
focal_class.signature:  RTPAudioFormat(int payload, String encodingName)
focal_class.class_method_signature: RTPAudioFormat.RTPAudioFormat(int payload, String encodingName, double sampleRate, int bits, int chans)
focal_class.full_signature: public  RTPAudioFormat(int payload, String encodingName, double sampleRate, int bits, int chans)
focal_class.identifier: RTPAudioFormat
focal_class.modifiers: public
focal_class.parameters: (int payload, String encodingName, double sampleRate, int bits, int chans)
focal_class.signature:  RTPAudioFormat(int payload, String encodingName, double sampleRate, int bits, int chans)
focal_class.class_method_signature: RTPAudioFormat.RTPAudioFormat(int payload, String encodingName, double sampleRate, int bits, int chans, int endian, int signed)
focal_class.full_signature: public  RTPAudioFormat(int payload, String encodingName, double sampleRate, int bits, int chans, int endian, int signed)
focal_class.identifier: RTPAudioFormat
focal_class.modifiers: public
focal_class.parameters: (int payload, String encodingName, double sampleRate, int bits, int chans, int endian, int signed)
focal_class.signature:  RTPAudioFormat(int payload, String encodingName, double sampleRate, int bits, int chans, int endian, int signed)
focal_class.class_method_signature: RTPAudioFormat.getPayloadType()
focal_class.full_signature: public int getPayloadType()
focal_class.identifier: getPayloadType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPayloadType()
focal_class.class_method_signature: RTPAudioFormat.setPayloadType(int payload)
focal_class.full_signature: public void setPayloadType(int payload)
focal_class.identifier: setPayloadType
focal_class.modifiers: public
focal_class.parameters: (int payload)
focal_class.return: void
focal_class.signature: void setPayloadType(int payload)
focal_class.class_method_signature: RTPAudioFormat.getBits(String enc)
focal_class.full_signature: private static int getBits(String enc)
focal_class.identifier: getBits
focal_class.modifiers: private static
focal_class.parameters: (String enc)
focal_class.return: int
focal_class.signature: int getBits(String enc)
focal_class.class_method_signature: RTPAudioFormat.parseFormat(String rtpmap)
focal_class.full_signature: public static RTPAudioFormat parseFormat(String rtpmap)
focal_class.identifier: parseFormat
focal_class.modifiers: public static
focal_class.parameters: (String rtpmap)
focal_class.return: RTPAudioFormat
focal_class.signature: RTPAudioFormat parseFormat(String rtpmap)
focal_class.class_method_signature: RTPAudioFormat.encode()
focal_class.full_signature: public Collection<Attribute> encode()
focal_class.identifier: encode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection<Attribute>
focal_class.signature: Collection<Attribute> encode()
focal_class.class_method_signature: RTPAudioFormat.toSdp()
focal_class.full_signature: public String toSdp()
focal_class.identifier: toSdp
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toSdp()
focal_class.superclass: extends AudioFormat
focal_method.body: public Collection<Attribute> encode() {
          Vector<Attribute> list = new Vector();
          list.add(sdpFactory.createAttribute("rtpmap", toSdp()));
          if (getEncoding().equalsIgnoreCase("telephone-event")) {
              list.add(sdpFactory.createAttribute("fmtp", payloadType + " 0-15"));
          } else if (getEncoding().equalsIgnoreCase("g729")) {
              list.add(sdpFactory.createAttribute("fmtp", payloadType + " annex=b"));
          }
          return list;
      }
focal_method.class_method_signature: RTPAudioFormat.encode()
focal_method.full_signature: public Collection<Attribute> encode()
focal_method.identifier: encode
focal_method.invocations: add createAttribute toSdp equalsIgnoreCase getEncoding add createAttribute equalsIgnoreCase getEncoding add createAttribute
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Collection<Attribute>
focal_method.signature: Collection<Attribute> encode()