public class UsbDeviceUtilities
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.net.URI |
DEFAULT_USB_DEVICE_URI |
static java.lang.String |
USB_DEVICE_ERROR |
| Modifier and Type | Method and Description |
|---|---|
static int |
productFromUri(java.net.URI uri)
Return an integer product ID from a URI specifying a USB device.
|
static int |
vendorFromUri(java.net.URI uri)
Return an integer vendor ID from a URI specifying a USB device.
|
public static final java.lang.String USB_DEVICE_ERROR
public static java.net.URI DEFAULT_USB_DEVICE_URI
public static int vendorFromUri(java.net.URI uri)
throws DataSourceResourceException
uri - the USB device URIDataSourceResourceException - If the URI doesn't match the
format usb://vendor_id/device_idpublic static int productFromUri(java.net.URI uri)
throws DataSourceResourceException
uri - the USB device URIDataSourceResourceException - If the URI doesn't match the
format usb://vendor_id/device_id