org.mobicents.mscontrol.sdp
Class FormatUtils

java.lang.Object
  extended by org.mobicents.mscontrol.sdp.FormatUtils

public class FormatUtils
extends Object

Utilities to help implement Format subclasses. Cannot be part of Format class because then serialization becomes incompatible with reference impl.

Author:
Ken Larson

Field Summary
static Class audioFormatClass
           
static Class byteArray
           
static Class formatArray
           
static Class intArray
           
static Class shortArray
           
static Class videoFormatClass
           
 
Constructor Summary
FormatUtils()
           
 
Method Summary
static boolean byteArraysEqual(byte[] ba1, byte[] ba2)
           
static String frameRateToString(float frameRate)
           
static boolean isOneAssignableFromTheOther(Class a, Class b)
           
static boolean isSubclass(Class a, Class b)
          Is a a subclass of b? Strict.
static boolean matches(double v1, double v2)
           
static boolean matches(float v1, float v2)
           
static boolean matches(int v1, int v2)
           
static boolean matches(Object o1, Object o2)
           
static boolean nullSafeEquals(Object o1, Object o2)
           
static boolean nullSafeEqualsIgnoreCase(String o1, String o2)
           
static boolean specified(double v)
           
static boolean specified(float v)
           
static boolean specified(int v)
           
static boolean specified(Object o)
           
static long stringEncodingCodeVal(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

byteArray

public static final Class byteArray

shortArray

public static final Class shortArray

intArray

public static final Class intArray

formatArray

public static final Class formatArray

videoFormatClass

public static final Class videoFormatClass

audioFormatClass

public static final Class audioFormatClass
Constructor Detail

FormatUtils

public FormatUtils()
Method Detail

isSubclass

public static boolean isSubclass(Class a,
                                 Class b)
Is a a subclass of b? Strict.


isOneAssignableFromTheOther

public static boolean isOneAssignableFromTheOther(Class a,
                                                  Class b)

stringEncodingCodeVal

public static long stringEncodingCodeVal(String s)

specified

public static boolean specified(Object o)

specified

public static boolean specified(int v)

specified

public static boolean specified(float v)

specified

public static boolean specified(double v)

byteArraysEqual

public static boolean byteArraysEqual(byte[] ba1,
                                      byte[] ba2)

nullSafeEquals

public static boolean nullSafeEquals(Object o1,
                                     Object o2)

nullSafeEqualsIgnoreCase

public static boolean nullSafeEqualsIgnoreCase(String o1,
                                               String o2)

matches

public static boolean matches(Object o1,
                              Object o2)

matches

public static boolean matches(int v1,
                              int v2)

matches

public static boolean matches(float v1,
                              float v2)

matches

public static boolean matches(double v1,
                              double v2)

frameRateToString

public static String frameRateToString(float frameRate)


Copyright © 2013 TeleStax, Inc.. All Rights Reserved.