usb.linux
Class Linux

java.lang.Object
  |
  +--usb.core.HostFactory
        |
        +--usb.linux.Linux

public final class Linux
extends HostFactory

Provides access to native USB host object for this process.

See Also:
HostProxy

Constructor Summary
Linux()
          Not part of the API; implements reference implementation SPI.
 
Method Summary
 Host createHost()
          Not part of the API; implements reference implementation SPI.
static Host getHost()
          Provides access to the singleton USB Host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Linux

public Linux()
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.


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.