public final class SerialComUSBdevice extends Object
Represents a USB device with information about it.
| Constructor and Description |
|---|
SerialComUSBdevice(String idVendor,
String idProduct,
String serial,
String product,
String manufacturer,
String location)
Construct and allocates a new SerialComUSBdevice object with the given details.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpDeviceInfo()
Prints information about this device on console.
|
String |
getLocation()
Retrieves the location information of this usb device.
|
String |
getManufacturerString()
Retrieves the manufacturer string of the USB device.
|
int |
getProductID()
Retrieves the product id of the USB device.
|
String |
getProductString()
Retrieves the product string of the USB device.
|
String |
getSerialNumber()
Retrieves the serial number string of the USB device.
|
int |
getVendorID()
Retrieves the vendor id of the USB device.
|
public SerialComUSBdevice(String idVendor, String idProduct, String serial, String product, String manufacturer, String location)
Construct and allocates a new SerialComUSBdevice object with the given details.
idVendor - USB-IF unique vendor id of this device.idProduct - USB product id of this device.serial - serial number of this device.product - product identifier/description of this device.manufacturer - company manufacturing of this device.location - location information of this device.SerialComException - if the object can not be constructed.public int getVendorID()
Retrieves the vendor id of the USB device.
NumberFormatException - if the USB vendor id hex string can not be converted into
numerical representation.public int getProductID()
Retrieves the product id of the USB device.
NumberFormatException - if the USB product id hex string can not be converted into
numerical representation.public String getSerialNumber()
Retrieves the serial number string of the USB device.
public String getProductString()
Retrieves the product string of the USB device.
public String getManufacturerString()
Retrieves the manufacturer string of the USB device.
public String getLocation()
Retrieves the location information of this usb device.
public void dumpDeviceInfo()
Prints information about this device on console.
Copyright © 2017. All rights reserved.