Class LinuxUsbDeviceFFM

java.lang.Object
oshi.hardware.common.AbstractUsbDevice
oshi.hardware.common.platform.linux.LinuxUsbDevice
oshi.hardware.platform.linux.LinuxUsbDeviceFFM
All Implemented Interfaces:
Comparable<oshi.hardware.UsbDevice>, oshi.hardware.UsbDevice

public final class LinuxUsbDeviceFFM extends oshi.hardware.common.platform.linux.LinuxUsbDevice
Linux USB device helper using FFM/udev. Instantiates LinuxUsbDevice objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<oshi.hardware.UsbDevice>
    getUsbDevices(boolean tree)
    Instantiates a list of UsbDevice objects, representing devices connected via a usb port (including internal devices).

    Methods inherited from class oshi.hardware.common.platform.linux.LinuxUsbDevice

    getDeviceAndChildren

    Methods inherited from class oshi.hardware.common.AbstractUsbDevice

    addDevicesToList, compareTo, getConnectedDevices, getName, getProductId, getSerialNumber, getUniqueDeviceId, getVendor, getVendorId, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getUsbDevices

      public static List<oshi.hardware.UsbDevice> getUsbDevices(boolean tree)
      Instantiates a list of UsbDevice objects, 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 UsbDevice objects.