javax.media
类 CaptureDeviceInfo

java.lang.Object
  继承者 javax.media.CaptureDeviceInfo
所有已实现的接口:
java.io.Serializable

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

A CaptureDeviceInfo object contains information about a particular capture device.

从以下版本开始:
JMF 2.0
另请参见:
序列化表格

字段摘要
protected  Format[] formats
          The output formats supported by a device.
protected  MediaLocator locator
          A MediaLocator that identifies a device.
protected  java.lang.String name
          A String that contains the name of a device.
 
构造方法摘要
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.
 
方法摘要
 boolean equals(java.lang.Object obj)
           
 Format[] getFormats()
          Gets a list of the output formats supported by this device.
 MediaLocator getLocator()
          Gets the MediaLocator needed to create a DataSource for this device through the Manager.
 java.lang.String getName()
          Gets the name of this device.
 java.lang.String toString()
           
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

name

protected java.lang.String name
A String that contains the name of a device.


locator

protected MediaLocator locator
A MediaLocator that identifies a device.


formats

protected Format[] formats
The output formats supported by a device.

构造方法详细信息

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.

参数:
name - A String that contains the name of the device.
locator - The MediaLocator that uniquely specifies the device.
formats - An array of the output formats supported by the device.

CaptureDeviceInfo

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

方法详细信息

getFormats

public Format[] getFormats()
Gets a list of the output formats supported by this device.

返回:
A Format array that contains the output formats supported by this device.

getLocator

public 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.

返回:
The MediaLocator that uniquely specifies this device.

getName

public java.lang.String getName()
Gets the name of this device. The name might include the device name, vendor name, and a version number.

返回:
A String that describes this device.

equals

public boolean equals(java.lang.Object obj)
覆盖:
java.lang.Object 中的 equals

toString

public java.lang.String toString()
覆盖:
java.lang.Object 中的 toString