Class LinuxUsbDeviceNF
java.lang.Object
oshi.hardware.common.AbstractUsbDevice
oshi.hardware.common.platform.linux.LinuxUsbDevice
oshi.hardware.common.platform.linux.nativefree.LinuxUsbDeviceNF
- All Implemented Interfaces:
Comparable<UsbDevice>, UsbDevice
Native-free Linux USB device enumeration from
/sys/bus/usb/devices/.-
Method Summary
Methods inherited from class LinuxUsbDevice
getDeviceAndChildrenModifier and TypeMethodDescriptionprotected static LinuxUsbDevicegetDeviceAndChildren(String devPath, String vid, String pid, Map<String, String> nameMap, Map<String, String> vendorMap, Map<String, String> vendorIdMap, Map<String, String> productIdMap, Map<String, String> serialMap, Map<String, List<String>> hubMap) Recursively creates LinuxUsbDevices by fetching information from maps to populate fieldsMethods inherited from class AbstractUsbDevice
addDevicesToList, compareTo, getConnectedDevices, getName, getProductId, getSerialNumber, getUniqueDeviceId, getVendor, getVendorId, toStringModifier and TypeMethodDescriptionprotected static voidaddDevicesToList(List<UsbDevice> deviceList, List<UsbDevice> list) Recursively adds USB devices fromlisttodeviceList, depth-first.intOther 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 devicetoString()
-
Method Details
-
getUsbDevices
-