com.skype.connector
Class ConnectorUtils

java.lang.Object
  extended by com.skype.connector.ConnectorUtils

public final class ConnectorUtils
extends Object

Connector helper class. Generic helper methods for all connectors.


Method Summary
static void checkNotNull(String name, Object value)
          Check an object if its not null.
static String getSkypeTempDir()
           
static void loadLibrary(String libraryName)
          Will load the given native library, extracting it from the resources if needed to a temporary file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkNotNull

public static void checkNotNull(String name,
                                Object value)
Check an object if its not null. If it is a NullPointerException will be thrown.

Parameters:
name - Name of the object, used in the exception message.
value - The object to check.

loadLibrary

public static void loadLibrary(String libraryName)
                        throws LoadLibraryException
Will load the given native library, extracting it from the resources if needed to a temporary file. This is just a auxiliary method and not to be used outside the API.

Parameters:
libraryName -
Throws:
LoadLibraryException - If the file could not be loaded for any reason.

getSkypeTempDir

public static String getSkypeTempDir()


Copyright © 2012. All Rights Reserved.