code: public static void setDriver(Class<? extends WebcamDriver> driverClass) {
  
  		if (driverClass == null) {
  			throw new IllegalArgumentException("Webcam driver class cannot be null!");
  		}
  
  		resetDriver();
  
  		try {
  			driver = driverClass.newInstance();
  		} catch (InstantiationException e) {
  			throw new WebcamException(e);
  		} catch (IllegalAccessException e) {
  			throw new WebcamException(e);
  		}
  	}
docs: Set new video driver class to be used by webcam. Class given in the argument shall extend
  {@link WebcamDriver} interface and should have public default constructor, so instance can be
  created by reflection.<br>
  <br>
  <b>This method is not thread-safe!</b>
  
  @param driverClass new video driver class to use
  @throws IllegalArgumentException when argument is null