|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javax.media.CaptureDeviceManager
CaptureDeviceManager is a manager class that provides access to
a list of the capture devices available on a system.
CaptureDeviceManager uses a registry and query mechanisms
to locate devices and return CaptureDeviceInfo objects for available
devices. The CaptureDeviceManager is also used to register new capture devices.
| Constructor Summary | |
CaptureDeviceManager()
|
|
| Method Summary | |
static boolean |
addDevice(CaptureDeviceInfo newDevice)
Adds a CaptureDeviceInfo object for a new capture device
to the list of devices maintained by the
CaptureDeviceManager. |
static void |
commit()
Permanently stores information about the list of devices in the registry. |
static CaptureDeviceInfo |
getDevice(java.lang.String deviceName)
Gets a CaptureDeviceInfo object that corresponds to the specified device. |
static java.util.Vector |
getDeviceList(Format format)
Gets a list of CaptureDeviceInfo objects that correspond to devices
that can capture data in the specified Format. |
static boolean |
removeDevice(CaptureDeviceInfo device)
Removes a CaptureDeviceInfo object from the list of devices maintained by the
CaptureDeviceManager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CaptureDeviceManager()
| Method Detail |
public static CaptureDeviceInfo getDevice(java.lang.String deviceName)
CaptureDeviceInfo object that corresponds to the specified device.
deviceName - A String that contains the name of the device for
which you want to get a CaptureDeviceInfo object.
For example: "SunVideo".
CaptureDeviceInfo object that corresponds to the specified device name.
Returns null if the specified device could
not be found.public static java.util.Vector getDeviceList(Format format)
CaptureDeviceInfo objects that correspond to devices
that can capture data in the specified Format.
If no Format is specified, this method returns a list of
CaptureDeviceInfo objects for all of the available capture devices.
Vector that contains CaptureDeviceInfo objects
for the devices that support the specified Format.public static boolean addDevice(CaptureDeviceInfo newDevice)
CaptureDeviceInfo object for a new capture device
to the list of devices maintained by the
CaptureDeviceManager. This information is not
stored permanently in any registry unless commit is called.
newDevice - A CaptureDeviceInfo object that identifies the new device.
true if the object is added successfully, false if it is not.commit()public static boolean removeDevice(CaptureDeviceInfo device)
CaptureDeviceInfo object from the list of devices maintained by the
CaptureDeviceManager. The change is not
stored permanently in any registry unless commit is called.
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
addDevice or removeDevice.
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 | ||||||||||