public final class DeviceInfo
extends java.lang.Object
Constructor and Description |
---|
DeviceInfo(UINT16 standardVersion,
UINT32 vendorExtensionID,
UINT16 vendorExtensionVersion,
java.lang.String vendorExtensionDesc,
UINT16 functionalMode,
java.util.List<UINT16> operationsSupported,
java.util.List<UINT16> eventsSupported,
java.util.List<UINT16> devicePropertiesSupported,
java.util.List<UINT16> captureFormats,
java.util.List<UINT16> imageFormats,
java.lang.String manufacturer,
java.lang.String model,
java.lang.String deviceVersion,
java.lang.String serialNumber)
Constructs new device information object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<UINT16> |
getCaptureFormats()
Returns the list of capture formats supported by the device.
|
java.util.List<UINT16> |
getDevicePropertiesSupported()
Returns the list of device properties supported by the device.
|
java.lang.String |
getDeviceVersion()
Returns the device description.
|
java.util.List<UINT16> |
getEventsSupported()
Returns the list of events supported by the device.
|
UINT16 |
getFunctionalMode()
Returns the functional mode value of the device.
|
java.util.List<UINT16> |
getImageFormats()
Returns the list of image formats supported by the device.
|
java.lang.String |
getManufacturer()
Returns the manufacturer name of the device.
|
java.lang.String |
getModel()
Returns the model name of the device.
|
java.util.List<UINT16> |
getOperationsSupported()
Returns the list of operations supported by the device.
|
java.lang.String |
getSerialNumber()
Returns the serial number of the device.
|
UINT16 |
getStandardVersion()
Returns the standard version value of the device.
|
java.lang.String |
getVendorExtensionDesc()
Returns the vendor extension description of the device.
|
UINT32 |
getVendorExtensionID()
Returns the vendor extension ID of the device.
|
UINT16 |
getVendorExtensionVersion()
Returns the vendor extension version of the device.
|
int |
hashCode() |
static DeviceInfo |
read(java.io.InputStream is)
Construct new device information object from InputStream.
|
static DeviceInfo |
read(org.theta4j.ptp.io.PtpInputStream pis)
Constructs new device information object from PtpInputStream.
|
java.lang.String |
toString() |
public DeviceInfo(UINT16 standardVersion, UINT32 vendorExtensionID, UINT16 vendorExtensionVersion, java.lang.String vendorExtensionDesc, UINT16 functionalMode, java.util.List<UINT16> operationsSupported, java.util.List<UINT16> eventsSupported, java.util.List<UINT16> devicePropertiesSupported, java.util.List<UINT16> captureFormats, java.util.List<UINT16> imageFormats, java.lang.String manufacturer, java.lang.String model, java.lang.String deviceVersion, java.lang.String serialNumber)
standardVersion
- The standard version value of the device.vendorExtensionID
- The vendor extension ID of the device.vendorExtensionVersion
- The vendor extension version of the device.vendorExtensionDesc
- The vendor extension description of the device.functionalMode
- The functional mode value of the device.operationsSupported
- The list of operations supported by the device.eventsSupported
- The list of events supported by the device.devicePropertiesSupported
- The list of device properties supported by the device.captureFormats
- The list of capture formats supported by the device.imageFormats
- The list of image formats supported by the device.manufacturer
- The manufacturer name of the device.model
- The model name of the device.deviceVersion
- The device description of the device.serialNumber
- The serial number of the device.java.lang.NullPointerException
- if an argument is null.public static DeviceInfo read(java.io.InputStream is) throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading the stream.public static DeviceInfo read(org.theta4j.ptp.io.PtpInputStream pis) throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading the stream.java.lang.NullPointerException
- if an argument is null.public UINT16 getStandardVersion()
public UINT32 getVendorExtensionID()
public UINT16 getVendorExtensionVersion()
public java.lang.String getVendorExtensionDesc()
public UINT16 getFunctionalMode()
public java.util.List<UINT16> getOperationsSupported()
public java.util.List<UINT16> getEventsSupported()
public java.util.List<UINT16> getDevicePropertiesSupported()
public java.util.List<UINT16> getCaptureFormats()
public java.util.List<UINT16> getImageFormats()
public java.lang.String getManufacturer()
public java.lang.String getModel()
public java.lang.String getDeviceVersion()
public java.lang.String getSerialNumber()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object