usb.core
Interface USBListener

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
RemoteUSBListener
All Known Implementing Classes:
USBListenerAdapter

public interface USBListener
extends java.util.EventListener

Interface implemented by objects that want to monitor USB structure. The order in which these changes are reported is not necessarily going to be the order in which the changes were seen in the real world, and delays also occur.

For the moment it seems wise to ensure that your listener callbacks can safely handle duplicated notifications.


Method Summary
 void busAdded(Bus bus)
          New bus added.
 void busRemoved(Bus bus)
          Bus removed.
 void deviceAdded(Device dev)
          New device added.
 void deviceRemoved(Device dev)
          Device removed.
 

Method Detail

busAdded

public void busAdded(Bus bus)
              throws java.io.IOException
New bus added.

busRemoved

public void busRemoved(Bus bus)
                throws java.io.IOException
Bus removed.

deviceAdded

public void deviceAdded(Device dev)
                 throws java.io.IOException
New device added.

deviceRemoved

public void deviceRemoved(Device dev)
                   throws java.io.IOException
Device removed.


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.