j2d.video.producers
Class SocketCameraSourceRcvr

java.lang.Object
  extended by j2d.video.producers.SocketCameraSourceRcvr
All Implemented Interfaces:
CameraSource

public class SocketCameraSourceRcvr
extends java.lang.Object
implements CameraSource


Constructor Summary
SocketCameraSourceRcvr(int port)
           
 
Method Summary
 void add(ImageListener il)
          Images captured by the camera are sent to the ImageListeners.
 void close()
          Close the camera source.
 java.awt.Image getImage()
          used to get the image for asynchronized capture and initialization.
static void main(java.lang.String[] args)
           
 boolean open()
          Open the camera source for subsequent use via call-backs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketCameraSourceRcvr

public SocketCameraSourceRcvr(int port)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Method Detail

add

public void add(ImageListener il)
Description copied from interface: CameraSource
Images captured by the camera are sent to the ImageListeners.

Specified by:
add in interface CameraSource

getImage

public java.awt.Image getImage()
Description copied from interface: CameraSource
used to get the image for asynchronized capture and initialization.

Specified by:
getImage in interface CameraSource

open

public boolean open()
Description copied from interface: CameraSource
Open the camera source for subsequent use via call-backs.

Specified by:
open in interface CameraSource
Returns:
true if the camera source was successfully opened.

close

public void close()
Description copied from interface: CameraSource
Close the camera source. Calling close on a closed CameraSource is permitted but has no effect. The camera source may be reopened after being closed.

Specified by:
close in interface CameraSource

main

public static void main(java.lang.String[] args)
                 throws java.lang.ClassNotFoundException,
                        java.io.IOException
Throws:
java.lang.ClassNotFoundException
java.io.IOException