usb.core
Interface Host

All Known Subinterfaces:
RemoteHost

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. Get one from a HostFactory.

See Also:
HostFactory

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.

getDevice

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

addUSBListener

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

removeUSBListener

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


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.