Class LinuxUsbDeviceFFM
java.lang.Object
oshi.hardware.common.AbstractUsbDevice
oshi.hardware.platform.linux.LinuxUsbDevice
oshi.hardware.platform.linux.LinuxUsbDeviceFFM
- All Implemented Interfaces:
Comparable<UsbDevice>, UsbDevice
Linux USB device helper using FFM/udev. Instantiates
LinuxUsbDevice objects.-
Method Summary
Modifier and TypeMethodDescriptiongetUsbDevices(boolean tree) Instantiates a list ofUsbDeviceobjects, representing devices connected via a usb port (including internal devices).Methods inherited from class LinuxUsbDevice
getDeviceAndChildrenMethods inherited from class AbstractUsbDevice
addDevicesToList, compareTo, getConnectedDevices, getName, getProductId, getSerialNumber, getUniqueDeviceId, getVendor, getVendorId, toString
-
Method Details
-
getUsbDevices
Instantiates a list ofUsbDeviceobjects, representing devices connected via a usb port (including internal devices).- Parameters:
tree- If true, returns a list of controllers with their device tree. If false, returns a flat list of devices excluding controllers.- Returns:
- a list of
UsbDeviceobjects.
-