Package com.zebra.commoniolib
Class ProbeTable
java.lang.Object
com.zebra.commoniolib.ProbeTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProduct
(int vendorId, int productId, Class<? extends UsbSerialDriver> driverClass) Adds or updates a (vendor, product) pair in the table.Class<? extends UsbSerialDriver>
findDriver
(int vendorId, int productId) Returns the driver for the given (vendor, product) pair, ornull
if no match.
-
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 idproductId
- the USB product iddriverClass
- the driver class responsible for this pair- Returns:
this
, for chaining
-
findDriver
Returns the driver for the given (vendor, product) pair, ornull
if no match.- Parameters:
vendorId
- the USB vendor idproductId
- the USB product id- Returns:
- the driver class matching this pair, or
null
-