javax.media
Class CaptureDeviceInfo

java.lang.Object
  |
  +--javax.media.CaptureDeviceInfo

public class CaptureDeviceInfo
extends java.lang.Object
implements java.io.Serializable

This class contains information about a capture device.

Since:
JMF 2.0
See Also:
Serialized Form

Field Summary
protected  Format[] formats
           
protected  MediaLocator locator
           
protected  java.lang.String name
           
 
Constructor Summary
CaptureDeviceInfo()
          Constructs a CaptureDeviceInfo object with null attributes.
CaptureDeviceInfo(java.lang.String name, MediaLocator locator, Format[] formats)
          Constructs a CaptureDeviceInfo object with the specified name, media locator and array of format objects.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Format[] getFormats()
          Returns a list of output formats supported by this device.
 MediaLocator getLocator()
          Returns the MediaLocator necessary to create a DataSource using the Manager.
 java.lang.String getName()
          Returns the name of the device represented as a string.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

locator

protected MediaLocator locator

formats

protected Format[] formats
Constructor Detail

CaptureDeviceInfo

public CaptureDeviceInfo(java.lang.String name,
                         MediaLocator locator,
                         Format[] formats)
Constructs a CaptureDeviceInfo object with the specified name, media locator and array of format objects.

CaptureDeviceInfo

public CaptureDeviceInfo()
Constructs a CaptureDeviceInfo object with null attributes.
Method Detail

getFormats

public Format[] getFormats()
Returns a list of output formats supported by this device.
Returns:
An array of formats supported by this device.

getLocator

public MediaLocator getLocator()
Returns the MediaLocator necessary to create a DataSource using the Manager. The locator must be unique so that no two devices use the same locator.

Returns:
The MediaLocator that uniquely specifies the device.

getName

public java.lang.String getName()
Returns the name of the device represented as a string. This name could include the device name, vendor name, version etc.
Returns:
The name that describes the device.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object