com.github.sarxos.webcam
Class WebcamDriverUtils
java.lang.Object
com.github.sarxos.webcam.WebcamDriverUtils
public class WebcamDriverUtils
- extends Object
|
Method Summary |
protected static WebcamDriver |
findDriver(List<String> drivers)
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 |
findDriver
protected static WebcamDriver findDriver(List<String> drivers)
- Find webcam driver. Scan packages to search drivers specified in the
argument.
- Parameters:
drivers - 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 Bartosz Firyn (SarXos). All Rights Reserved.