- All Superinterfaces:
Comparable<UsbDevice>
- All Known Implementing Classes:
AbstractUsbDevice
,AixUsbDevice
,FreeBsdUsbDevice
,LinuxUsbDevice
,MacUsbDevice
,OpenBsdUsbDevice
,SolarisUsbDevice
,WindowsUsbDevice
A USB device is a device connected via a USB port, possibly internally/permanently. Hubs may contain ports to which
other devices connect in a recursive fashion.
-
Method Summary
Modifier and TypeMethodDescriptionOther devices connected to this hubgetName()
Name of the USB deviceProduct ID of the USB deviceSerial number of the USB deviceA Unique Device ID of the USB device, such as the PnPDeviceID (Windows), Device Node Path (Linux), Registry Entry ID (macOS), or Device Node number (Unix)Vendor that manufactured the USB deviceID of the vendor that manufactured the USB deviceMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getName
String getName()Name of the USB device- Returns:
- The device name
-
getVendor
String getVendor()Vendor that manufactured the USB device- Returns:
- The vendor name
-
getVendorId
String getVendorId()ID of the vendor that manufactured the USB device- Returns:
- The vendor ID, a 4-digit hex string
-
getProductId
String getProductId()Product ID of the USB device- Returns:
- The product ID, a 4-digit hex string
-
getSerialNumber
String getSerialNumber()Serial number of the USB device- Returns:
- The serial number, if known
-
getUniqueDeviceId
String getUniqueDeviceId()A Unique Device ID of the USB device, such as the PnPDeviceID (Windows), Device Node Path (Linux), Registry Entry ID (macOS), or Device Node number (Unix)- Returns:
- The Unique Device ID
-
getConnectedDevices
Other devices connected to this hub- Returns:
- An
UnmodifiableList
of other devices connected to this hub, if any, or an empty list if none
-