com.github.sarxos.webcam
Class WebcamDriverUtils
java.lang.Object
com.github.sarxos.webcam.WebcamDriverUtils
public class WebcamDriverUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 packageflat - 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.