javax.usb
Class UsbHostManager

java.lang.Object
  extended byjavax.usb.UsbHostManager

public final class UsbHostManager
extends java.lang.Object

Entry point for javax.usb.

Author:
Dan Streetman, E. Michael Maximilien

Field Summary
static java.lang.String JAVAX_USB_PROPERTIES_FILE
           
static java.lang.String JAVAX_USB_USBSERVICES_PROPERTY
           
 
Method Summary
static java.util.Properties getProperties()
          Get the Properties loaded from the properties file.
static UsbServices getUsbServices()
          Get the UsbServices implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVAX_USB_PROPERTIES_FILE

public static final java.lang.String JAVAX_USB_PROPERTIES_FILE
See Also:
Constant Field Values

JAVAX_USB_USBSERVICES_PROPERTY

public static final java.lang.String JAVAX_USB_USBSERVICES_PROPERTY
See Also:
Constant Field Values
Method Detail

getUsbServices

public static UsbServices getUsbServices()
                                  throws UsbException,
                                         java.lang.SecurityException
Get the UsbServices implementation.

Returns:
The UsbServices implementation instance.
Throws:
UsbException - If there is an error creating the UsbSerivces implementation.
java.lang.SecurityException - If the caller does not have security access.

getProperties

public static java.util.Properties getProperties()
                                          throws UsbException,
                                                 java.lang.SecurityException
Get the Properties loaded from the properties file.

If the properties have not yet been loaded, this loads them.

Returns:
An copy of the Properties.
Throws:
UsbException - If an error occurs while loading the properties.
java.lang.SecurityException - If the caller does not have security access.


Copyright © 2009 Eurotech Inc. All rights reserved.