亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? windows.java

?? JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * Java USB Library * Copyright (C) 2000 by David Brownell * Copyright (C) 2002 by Wayne Westerman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA *  * */package usb.windows;import java.io.IOException;import java.util.Enumeration;import java.util.Vector;import java.util.Hashtable;import usb.core.*;/** * Provides access to native USB host objects * * @author  Mike Stahl * @version $id: Windows.java, v1.0 Created on 11. Juli 2003, 21:23  */public class Windows extends usb.core.HostFactory {        public static final boolean debug = false;    /** If true the debugs the enumeration process */        public static final boolean debugEnum = false;    // To look what happens in the Watcher class    /** if true then debugs the Watcher issues */        public static final boolean debugWatcher = false;    /** if true then debugs the USB issues */        public static final boolean debugUSB = false;    /** if true then debugs the DeviceImpl issues */        public static final boolean debugDeviceImpl = false;    /** if true then debugs the JUSB issues */        public static final boolean debugJUSB = false;    /** if true then debugs the USB issues */        public static boolean createUSB;           private static Windows.HostImpl self;        static private Watcher watcher;    static private Thread daemon;    /** The polling period for scanning the bus in seconds */        static final int POLL_PERIOD = 4;	// seconds        /** The string to regocnise a jUSB driver. If the "DeviceDesc" value in the Windows     * registry for an usb device starts with this name then the device is supposed to     * be a jUSB device.     */        public static final String A_JUSB_DRIVER = "JUSB Driver --:";        /**      * Not part of the API; implements reference implementation SPI.     */    public Windows() {    }    /**      * Not part of the API; implements reference implementation SPI.     */     public Host createHost() throws java.io.IOException {        return Windows.getHost();    }       /**     * Provides access to a singelton USB Host     */    public static Host getHost() throws IOException{       synchronized (Host.class){           // check whether there exists already a HostImpl or not           if (self == null) {             // there exists no Host; create our own Host.                          // load the jusb.dll which must be put into the              // Windows system32 folder             System.loadLibrary("jusb");                            self = new Windows.HostImpl();                                           }      } // end of synchronized       return self;    }        /** Return the host controller name of the Windows OS     * @param hcdDevicePath The host controller device path from the Windows OS     * @return The name of the host controller or null.     */         static public native String getHostControllerName(String hcdDevicePath);     /** Return the ith host controller device path from the Windows OS      * @param number The number indicates the ith host controller on the system. Start with 0 and      * increment until null is returned      * @return The host controller device path or null.      */          static public native String getHostControllerDevicePath(int number);        /********************************************************************     * Represents a Windows host associated with one or more      * Universal Serial Busses (USBs)     *     * To provide missunderstanding in the USB topology of Windows      * operating systems, one Universal Serial Bus is managed by one      * Host Controller. So the host we create through the jusb API has     * nothing to do with the Host Controller from the Windows os.     * In fact a host controller in the Windows os correspond to a     * Bus according to this jusb API. This means if we have more     * than one host controller on our Windows PC, we will have also     * more USB Busses. The amount of busses is equal to the amount of     * host controllers.     */         private static final class HostImpl implements Host{                  private final transient Hashtable busses = new Hashtable(3);         private final transient Vector listeners = new Vector(3);                  HostImpl() throws IOException{            super();                        watcher = new Watcher(busses,listeners);            // create a new Thread with the target watcher, which implements the run() method            // and name the thread "USB_watcher"            daemon = new Thread(watcher,"USB-Watcher");            // we set this thread as a daemon. This make sure that our watcher terminate as             // soon our main application stops.             daemon.setDaemon(true);            daemon.start();         }                  // actually not necessary because our thread is a daemon thread         // and is terminated when our main application is terminated         //         protected void finalize(){            daemon.interrupt();         }                  public void addUSBListener(USBListener l) throws IOException {             if (l == null) throw new IllegalArgumentException();             listeners.add(l);         }                           public Bus[] getBusses() throws IOException {          synchronized(busses){            Bus retval [] = new Bus [busses.size()];            int i=0;            for(Enumeration e = busses.keys(); e.hasMoreElements(); )                retval[i++] = (Bus) busses.get(e.nextElement());            return retval;          }         }                  public Device getDevice(String portId) throws IOException {             return new PortIdentifier(portId).getDevice(this);         }                  public void removeUSBListener(USBListener l) throws IOException {             listeners.remove(l);         }              } // end of class HostImpl          /******************************************************************      * Monitors the USB bus structure about removal and attachment of       * devices.      */     private static final class Watcher implements Runnable{                  private final Hashtable busses;         private final Vector listeners;                  boolean finishedScan;                   Watcher(Hashtable b, Vector l) throws IOException{            busses = b;            listeners = l;            //initial population of all the busses            if(Windows.debugWatcher) System.out.println(Windows.createUSB + " Watcher.Constructor() >>> before scan! \n");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产高清| 欧美日韩亚洲不卡| 色网站国产精品| 88在线观看91蜜桃国自产| 精品国产乱码久久久久久蜜臀| 在线不卡欧美精品一区二区三区| 欧美成人激情免费网| 国产日产精品一区| 夜夜亚洲天天久久| 激情综合网激情| 欧美男生操女生| 中文字幕免费在线观看视频一区| 一区二区三区日韩精品视频| 精品综合免费视频观看| 久久99久久久久久久久久久| a在线播放不卡| 欧美一级专区免费大片| 亚洲欧美日韩国产手机在线| 亚洲一区二区精品3399| kk眼镜猥琐国模调教系列一区二区| 欧美在线视频全部完| 久久蜜桃av一区二区天堂| 午夜精品久久久久久久99水蜜桃| 国产99久久久久久免费看农村| 欧美日本国产视频| 综合久久综合久久| 久久精品国产亚洲一区二区三区| 麻豆久久一区二区| 欧美肥胖老妇做爰| 亚洲精品欧美激情| 不卡影院免费观看| 欧美精品aⅴ在线视频| 亚洲成人精品在线观看| 99re热视频精品| 久久日韩粉嫩一区二区三区| 全国精品久久少妇| 26uuu亚洲综合色欧美 | 91片在线免费观看| 久久九九影视网| 日本在线不卡视频一二三区| 3751色影院一区二区三区| 亚洲四区在线观看| 91小视频在线免费看| 国产精品蜜臀在线观看| 97久久超碰国产精品| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 欧美日本不卡视频| 亚洲国产乱码最新视频| 欧美系列日韩一区| 久久精品99久久久| 26uuu亚洲综合色欧美| 美女诱惑一区二区| 日韩区在线观看| 国产一区二区不卡在线| 久久综合网色—综合色88| 久久99久久久欧美国产| 精品国产乱码久久久久久免费| 亚洲国产欧美日韩另类综合| 欧美一区二区日韩| 激情成人综合网| 欧美大片在线观看| 国产精品一区二区三区99| 秋霞午夜鲁丝一区二区老狼| 国产女人水真多18毛片18精品视频| 日韩精品一区二区三区中文不卡| 免费成人在线观看| 久久综合色8888| 成人看片黄a免费看在线| 国产精品丝袜91| 在线精品亚洲一区二区不卡| 亚洲 欧美综合在线网络| 777亚洲妇女| 国产99久久久国产精品潘金网站| 亚洲一区二区三区在线| 欧美一卡二卡在线观看| 成人综合婷婷国产精品久久免费| 国产精品―色哟哟| 91麻豆成人久久精品二区三区| 天堂久久久久va久久久久| 日韩一级片网址| 99久久精品国产精品久久| 亚洲综合在线视频| 国产欧美精品国产国产专区| 在线观看亚洲专区| 久久99国产精品免费| 最新热久久免费视频| 欧美亚洲免费在线一区| 国产精品一区一区三区| 亚洲免费在线视频一区 二区| 欧美群妇大交群的观看方式| 国产99久久久国产精品免费看| 欧美zozozo| 欧美精三区欧美精三区| 国产99久久久久| 麻豆视频一区二区| 亚洲国产一区二区三区| 国产精品久久综合| 国产喂奶挤奶一区二区三区| 欧美mv日韩mv国产网站| 欧美日本一道本| 欧美三级日韩三级国产三级| 97久久精品人人做人人爽| 国产精品一级在线| 精品一区二区三区香蕉蜜桃| 日本亚洲最大的色成网站www| 一区二区三区四区五区视频在线观看| 国产欧美日韩久久| 久久久不卡影院| 欧美大片在线观看| 欧美一区二区三区日韩视频| 欧美高清激情brazzers| 欧美精选午夜久久久乱码6080| 欧美影视一区二区三区| 色婷婷一区二区三区四区| 色香蕉久久蜜桃| 色激情天天射综合网| 在线观看欧美黄色| 欧美色图在线观看| 欧美精品少妇一区二区三区| 欧美日韩国产综合一区二区三区| 91久久免费观看| 欧美无乱码久久久免费午夜一区| 色天天综合久久久久综合片| 91精彩视频在线| 欧美久久久久久久久| 欧美一区二区不卡视频| 精品久久一二三区| 久久久国际精品| 国产精品电影院| 亚洲综合色成人| 青青草一区二区三区| 国内精品伊人久久久久av影院| 国产一区在线精品| 99视频在线精品| 精品1区2区3区| 日韩精品一区二区三区在线| 国产午夜久久久久| 亚洲美女视频在线观看| 亚洲午夜一二三区视频| 麻豆精品视频在线观看视频| 国产呦精品一区二区三区网站| 成人黄色国产精品网站大全在线免费观看| 91在线观看一区二区| 欧美日韩激情一区二区三区| 精品国产区一区| 亚洲人成电影网站色mp4| 蜜臀久久久99精品久久久久久| 国产精品性做久久久久久| 色综合久久精品| 欧美tickling网站挠脚心| 亚洲同性gay激情无套| 日本欧美一区二区三区| 不卡av在线网| 欧美日韩高清影院| 国产精品美女久久福利网站| 亚洲成av人综合在线观看| 国产一区二区三区黄视频| 欧美优质美女网站| 久久亚洲一区二区三区明星换脸| 日韩伦理av电影| 精品一区二区三区的国产在线播放| 99久久婷婷国产综合精品| 欧美一级精品在线| 亚洲精选一二三| 国产传媒久久文化传媒| 欧美日韩精品系列| 国产精品日产欧美久久久久| 日本亚洲免费观看| 91久久国产综合久久| 国产色产综合产在线视频| 免费高清在线一区| 欧美图片一区二区三区| 亚洲国产精品高清| 精品一区二区三区不卡| 在线不卡一区二区| 伊人性伊人情综合网| 风间由美一区二区av101| 欧美v亚洲v综合ⅴ国产v| 亚洲欧洲综合另类| 国产**成人网毛片九色 | 欧美一级高清大全免费观看| 亚洲人吸女人奶水| 成人av在线资源网| 久久新电视剧免费观看| 免费日本视频一区| 欧美无砖砖区免费| 亚洲综合av网| 色婷婷综合久久久久中文一区二区| 欧美激情一区不卡| 国产二区国产一区在线观看| 欧美精品一区在线观看| 久久精品噜噜噜成人av农村| 欧美日本一道本| 午夜精品一区二区三区三上悠亚| 欧美在线制服丝袜| 亚洲激情校园春色| 色激情天天射综合网| 一区二区免费在线播放| 91啪九色porn原创视频在线观看| 综合久久久久久久|