usb.core
Interface Host

All Known Subinterfaces:
RemoteHost
All Known Implementing Classes:
HostProxy

public interface Host

Represents a host with one or more Universal Serial Busses.

A Host is the first object you need to access in order to use this API. At this writing, accessing that first object uses OS-specific APIs, or unstandardized policies for using RMI Naming. That will change over time.

See Also:
Linux

Method Summary
 void addUSBListener(USBListener l)
          Adds a callback for USB structure changes
 Bus[] getBusses()
          Returns an array of objects representing the USB busses currently available on this host.
 Device getDevice(java.lang.String portId)
          Returns the device, if any, associated with the specified PortIdentifier string.
 void removeUSBListener(USBListener l)
          Removes a callback for USB structure changes
 

Method Detail

getBusses

public Bus[] getBusses()
                throws java.io.IOException
Returns an array of objects representing the USB busses currently available on this host.

java.io.IOException

getDevice

public Device getDevice(java.lang.String portId)
                 throws java.io.IOException
Returns the device, if any, associated with the specified PortIdentifier string.

java.io.IOException

addUSBListener

public void addUSBListener(USBListener l)
                    throws java.io.IOException
Adds a callback for USB structure changes

java.io.IOException

removeUSBListener

public void removeUSBListener(USBListener l)
                       throws java.io.IOException
Removes a callback for USB structure changes

java.io.IOException