usb.windows
Class Windows

java.lang.Object
  |
  +--usb.core.HostFactory
        |
        +--usb.windows.Windows

public final class Windows
extends HostFactory

Provides access to native USB host object for this process.

See Also:
HostProxy

Constructor Summary
Windows()
          Not part of the API; implements reference implementation SPI.
 
Method Summary
 Host createHost()
          Not part of the API; implements reference implementation SPI.
static void existingFWDeviceRemoved(int vendor_id, int product_id, int usb_port_address, java.lang.String pdoname)
           
static Host getHost()
          Provides access to the singleton USB Host.
static Host getHost(USBListener startup_listener)
           
static void newFWDeviceAvailable(int vendor_id, int product_id, int usb_port_address, java.lang.String pdoname)
           
static void scanForFWDevices()
           
static int startDeviceWatch(boolean start_not_stop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Windows

public Windows()
Not part of the API; implements reference implementation SPI.
Method Detail

createHost

public Host createHost()
                throws java.io.IOException
Not part of the API; implements reference implementation SPI.
Overrides:
createHost in class HostFactory

getHost

public static Host getHost()
                    throws java.io.IOException,
                           java.lang.SecurityException
Provides access to the singleton USB Host. This creates a "USB Watcher" daemon thread, which keeps USB device and bus connectivity data current.
Returns:
the host, or null if USB support isn't available.
Throws:
java.io.IOException - for file access problems
java.lang.SecurityException - when usbdevfs hasn't been set up to allow this process to read and write all device nodes
java.lang.RuntimeException - various runtime exceptions may be thrown if the USB information provided by the system doesn't appear to make sense.

getHost

public static Host getHost(USBListener startup_listener)
                    throws java.io.IOException,
                           java.lang.SecurityException

newFWDeviceAvailable

public static void newFWDeviceAvailable(int vendor_id,
                                        int product_id,
                                        int usb_port_address,
                                        java.lang.String pdoname)

existingFWDeviceRemoved

public static void existingFWDeviceRemoved(int vendor_id,
                                           int product_id,
                                           int usb_port_address,
                                           java.lang.String pdoname)

scanForFWDevices

public static void scanForFWDevices()

startDeviceWatch

public static int startDeviceWatch(boolean start_not_stop)


Associated source code is licenced under the LGPL.
See http://jusb.sourceforge.net
This documentation was derived from that source code on 24-Jul-2002.