Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof CaptureDeviceInfo))
return false;
CaptureDeviceInfo cdi = (CaptureDeviceInfo) obj;
return
name != null && locator != null && formats != null &&
name.equals(cdi.getName()) &&
locator.equals(cdi.getLocator()) &&
formats.equals(cdi.getFormats());
|
public javax.media.Format[] | getFormats()Gets a list of the output formats supported by this device.
return formats;
|
public javax.media.MediaLocator | getLocator()Gets the MediaLocator needed to create a DataSource
for this device through the Manager . The MediaLocator
is unique--no two devices can use the same locator.
return locator;
|
public java.lang.String | getName()Gets the name of this device.
The name might include the device name, vendor name, and a version number.
return name;
|
public java.lang.String | toString()
String result = name + " : " + locator + "\n";
if (formats != null) {
for (int i = 0; i < formats.length; i++) {
result += formats[i] + "\n";
}
}
return result;
|