Code example for UsbDevice

Methods: getVendorId

0
                + to2HexString(dev.getDeviceSubclass()) + ", "
                + to2HexString(dev.getDeviceProtocol()) + ")";
    } 
 
    public static String getVidString(UsbDevice dev) {
        final int vid = dev.getVendorId();
        return to4HexString(vid);
    } 
 
    public static String getPidString(UsbDevice dev) {
        final int pid = dev.getProductId();
        return to4HexString(pid);
    } 
 
    /* 
     * UsbInterface の値を文字列化するためのメソッド群 
     */ 
     
     
    public static String getIdString(UsbInterface iface) {
        final int id = iface.getId();