|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.CaptureDeviceManager | +--javax.media.cdm.CaptureDeviceManager
This is a manager class that fetches a list of devices available on the system. It uses a registry mechanism and/or query mechanism to locate devices and return CaptureDeviceInfo objects for each available device. The CaptureDeviceManager can also be used to register new devices by adding a device and calling commit().
Field Summary | |
(package private) static java.util.Vector |
devices
|
Constructor Summary | |
CaptureDeviceManager()
|
Method Summary | |
static boolean |
addDevice(CaptureDeviceInfo newDevice)
Adds a CaptureDeviceInfo object to the list. |
static void |
commit()
Permanently store information about the list of devices in a registry. |
static CaptureDeviceInfo |
getDevice(java.lang.String deviceName)
Returns the CaptureDeviceInfo corresponding to the specified name of the device. |
static java.util.Vector |
getDeviceList()
Returns a list of CaptureDeviceInfo objects for each of the registered devices. |
static java.util.Vector |
getDeviceList(Format format)
Returns a list of CaptureDeviceInfo objects corresponding to devices that can capture data with the specified data format. |
static boolean |
removeDevice(CaptureDeviceInfo device)
Removes a CaptureDeviceInfo object from the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static java.util.Vector devices
Constructor Detail |
public CaptureDeviceManager()
Method Detail |
public static java.util.Vector getDeviceList()
public static CaptureDeviceInfo getDevice(java.lang.String deviceName)
deviceName
- A String
that contains the name of the device for
which you want to get a CaptureDeviceInfo
object.
For example: "SunVideo".
public static java.util.Vector getDeviceList(Format format)
public static boolean addDevice(CaptureDeviceInfo newDevice)
newDevice
- A CaptureDeviceInfo
object that identifies the new device.
commit()
public static boolean removeDevice(CaptureDeviceInfo device)
device
- A CaptureDeviceInfo
object that identifies the device to remove.
true
if the object is removed successfully, false
if it is not.commit()
public static void commit() throws java.io.IOException
java.io.IOException
- If the registry could not be committed to disk due
to an IO error.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |