Class ProbeTable

java.lang.Object
com.zebra.commoniolib.ProbeTable

public class ProbeTable extends Object
  • Constructor Details

    • ProbeTable

      public ProbeTable()
  • Method Details

    • addProduct

      public ProbeTable addProduct(int vendorId, int productId, Class<? extends UsbSerialDriver> driverClass)
      Adds or updates a (vendor, product) pair in the table.
      Parameters:
      vendorId - the USB vendor id
      productId - the USB product id
      driverClass - the driver class responsible for this pair
      Returns:
      this, for chaining
    • findDriver

      public Class<? extends UsbSerialDriver> findDriver(int vendorId, int productId)
      Returns the driver for the given (vendor, product) pair, or null if no match.
      Parameters:
      vendorId - the USB vendor id
      productId - the USB product id
      Returns:
      the driver class matching this pair, or null