usb.core
Class HostFactory

java.lang.Object
  |
  +--usb.core.HostFactory
Direct Known Subclasses:
Linux, RemoteHostFactory, Windows

public abstract class HostFactory
extends java.lang.Object

Bootstrapping methods.


Constructor Summary
protected HostFactory()
          Not part of the API.
 
Method Summary
abstract  Host createHost()
          Not part of the API.
static Host getHost()
          Returns a USB Host according to an environment-specific policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostFactory

protected HostFactory()
Not part of the API. This is part of the SPI for the reference implementation.
Method Detail

createHost

public abstract Host createHost()
                         throws java.io.IOException
Not part of the API. This is part of the SPI for the reference implementation.

getHost

public static Host getHost()
                    throws java.io.IOException
Returns a USB Host according to an environment-specific policy. This bootstrapping method is part of the API, but the policy used by the environment isn't.
Throws:
java.io.IOException - When USB Host functions are not available.


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.