public class CaptureDeviceInfo2
extends javax.media.CaptureDeviceInfo
Constructor and Description |
---|
CaptureDeviceInfo2(javax.media.CaptureDeviceInfo captureDeviceInfo,
java.lang.String uid,
java.lang.String transportType,
java.lang.String modelIdentifier)
Initializes a new CaptureDeviceInfo2 instance from a
specific CaptureDeviceInfo instance and additional information
specific to the CaptureDeviceInfo2 class.
|
CaptureDeviceInfo2(java.lang.String name,
javax.media.MediaLocator locator,
javax.media.Format[] formats,
java.lang.String uid,
java.lang.String transportType,
java.lang.String modelIdentifier)
Initializes a new CaptureDeviceInfo2 instance with the
specified name, media locator, and array of Format objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether a specific Object is equal (by value) to this
instance.
|
java.lang.String |
getIdentifier()
Returns the device identifier used to save and load device preferences.
|
java.lang.String |
getModelIdentifier()
Returns the model identifier of this instance.
|
java.lang.String |
getTransportType()
Returns the device transport type of this instance.
|
java.lang.String |
getUID()
Returns the device UID (unique identifier) of this instance.
|
int |
hashCode()
Returns a hash code value for this object for the benefit of hashtables.
|
boolean |
isSameTransportType(java.lang.String transportType)
Determines whether a specific transport type is equal to/the same as the
transport type of this instance.
|
public CaptureDeviceInfo2(javax.media.CaptureDeviceInfo captureDeviceInfo, java.lang.String uid, java.lang.String transportType, java.lang.String modelIdentifier)
CaptureDeviceInfo2(String, MediaLocator, Format[], String,
String, String)
.captureDeiceInfo
- the CaptureDeviceInfo whose properties
are to be copied into the new instanceuid
- the unique identifier of the hardware device (interface) which
is to be represented by the new instancetransportType
- the transport type (e.g. USB) of the device to be
represented by the new instancemodelIdentifier
- the persistent identifier of the model of the
hardware device to be represented by the new instancepublic CaptureDeviceInfo2(java.lang.String name, javax.media.MediaLocator locator, javax.media.Format[] formats, java.lang.String uid, java.lang.String transportType, java.lang.String modelIdentifier)
name
- the human-readable name of the new instancelocator
- the MediaLocator which uniquely identifies the
device to be described by the new instanceformats
- an array of the Formats supported by the device
to be described by the new instanceuid
- the unique identifier of the hardware device (interface) which
is to be represented by the new instancetransportType
- the transport type (e.g. USB) of the device to be
represented by the new instancemodelIdentifier
- the persistent identifier of the model of the
hardware device to be represented by the new instancepublic boolean equals(java.lang.Object obj)
equals
in class javax.media.CaptureDeviceInfo
obj
- the Object to be determined whether it is equal (by
value) to this instancepublic java.lang.String getIdentifier()
public java.lang.String getTransportType()
public java.lang.String getUID()
public java.lang.String getModelIdentifier()
public int hashCode()
hashCode
in class javax.media.CaptureDeviceInfo
public boolean isSameTransportType(java.lang.String transportType)
transportType
- the transport type to compare to the transport type
of this instance
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.