javax.media
Class CaptureDeviceInfo
java.lang.Object
|
+--javax.media.CaptureDeviceInfo
- public class CaptureDeviceInfo
- extends java.lang.Object
- implements java.io.Serializable
A CaptureDeviceInfo
object contains information about a particular capture device.
- Since:
- JMF 2.0
- See Also:
- Serialized Form
Field Summary |
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. |
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()
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()
|
Methods inherited from class 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.
- Parameters:
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.
- Returns:
- 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.
- Returns:
- 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.
- Returns:
- A
String
that describes this 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
Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.