com.github.sarxos.webcam
Class WebcamDriverUtils

java.lang.Object
  extended by com.github.sarxos.webcam.WebcamDriverUtils

public class WebcamDriverUtils
extends Object


Method Summary
protected static WebcamDriver findDriver(List<String> names, List<Class<?>> classes)
          Find webcam driver.
protected static Class<?>[] getClasses(String pkgname, boolean flat)
          Scans all classes accessible from the context class loader which belong to the given package and subpackages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findDriver

protected static WebcamDriver findDriver(List<String> names,
                                         List<Class<?>> classes)
Find webcam driver. Scan packages to search drivers specified in the argument.

Parameters:
names - array of driver names to search for
Returns:
Driver if found or throw exception

getClasses

protected static Class<?>[] getClasses(String pkgname,
                                       boolean flat)
Scans all classes accessible from the context class loader which belong to the given package and subpackages.

Parameters:
packageName - The base package
flat - scan only one package level, do not dive into subdirectories
Returns:
The classes
Throws:
ClassNotFoundException
IOException


Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.