Class LinuxUsbDeviceNF

All Implemented Interfaces:
Comparable<UsbDevice>, UsbDevice

public final class LinuxUsbDeviceNF extends LinuxUsbDevice
Native-free Linux USB device enumeration from /sys/bus/usb/devices/.
  • Method Details

    • getUsbDevices

      public static List<UsbDevice> getUsbDevices(boolean tree)
      Gets USB devices on this machine.
      Parameters:
      tree - if true, returns controllers with device tree; if false, flat list excluding controllers
      Returns:
      a list of UsbDevice objects