com.github.sarxos.webcam
Class WebcamTask

java.lang.Object
  extended by com.github.sarxos.webcam.WebcamTask
Direct Known Subclasses:
WebcamCloseTask, WebcamDisposeTask, WebcamOpenTask, WebcamReadBufferTask

public abstract class WebcamTask
extends Object


Constructor Summary
WebcamTask(WebcamDriver driver, WebcamDevice device)
           
 
Method Summary
 WebcamDevice getDevice()
           
 WebcamException getException()
           
protected abstract  void handle()
           
 void process()
          Process task by processor thread.
 void setException(WebcamException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebcamTask

public WebcamTask(WebcamDriver driver,
                  WebcamDevice device)
Method Detail

getDevice

public WebcamDevice getDevice()

process

public void process()
Process task by processor thread.

Parameters:
processor - the processor to be used to process this task

getException

public WebcamException getException()

setException

public void setException(WebcamException exception)

handle

protected abstract void handle()


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