org.mobicents.mscontrol.sdp
Class FormatUtils
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FormatUtils
public FormatUtils()
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.