org.mobicents.media.server
Class Utils
java.lang.Object
org.mobicents.media.server.Utils
public class Utils
- extends java.lang.Object
- Author:
- Oleg Kulikov
|
Constructor Summary |
Utils()
Creates a new instance of Utils |
|
Method Summary |
static void |
addObject(java.lang.Object[] target,
java.lang.Object o)
|
static java.lang.String |
doMessage(java.lang.Throwable t)
|
static java.net.URL |
getAbsoluteURL(java.lang.String parrent,
java.lang.String passedURI)
|
static AudioFormat |
parseFormat(java.lang.String formatDesc)
Creates audio format object from given format description. |
static boolean |
removeObject(java.lang.Object[] target,
java.lang.Object o)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_FILE_SCHEME_
public static final java.lang.String _FILE_SCHEME_
- See Also:
- Constant Field Values
_FILE_SCHEME_CONCAT_
public static final java.lang.String _FILE_SCHEME_CONCAT_
- See Also:
- Constant Field Values
Utils
public Utils()
- Creates a new instance of Utils
parseFormat
public static AudioFormat parseFormat(java.lang.String formatDesc)
- Creates audio format object from given format description.
- Parameters:
formatDesc - the description of the format. Format description is
as follows: codec, sampleRate Hz, sampleSize-bits, channels.
example: G729, 8000.0 Hz, 8-bits, Mono
doMessage
public static java.lang.String doMessage(java.lang.Throwable t)
getAbsoluteURL
public static final java.net.URL getAbsoluteURL(java.lang.String parrent,
java.lang.String passedURI)
throws java.net.URISyntaxException,
java.net.MalformedURLException
- Parameters:
parrent - parent uri to be used if string parameter is not absolute.passedURI - - uri passed to certain method, it will either form URI or be part of URI with parent parameter
- Returns:
- uri to be used.
- Throws:
java.net.URISyntaxException
java.net.MalformedURLException
addObject
public static void addObject(java.lang.Object[] target,
java.lang.Object o)
removeObject
public static boolean removeObject(java.lang.Object[] target,
java.lang.Object o)
Copyright © 2010. All Rights Reserved.