usb.core
Class USBListenerAdapter

java.lang.Object
  |
  +--usb.core.USBListenerAdapter
All Implemented Interfaces:
java.util.EventListener, USBListener

public class USBListenerAdapter
extends java.lang.Object
implements USBListener

Subclassable USBListener adapter, which ignores all calls. Your subclasses can provide behaviors only for the events relevant to their roles.

You may want to wrap your instances within a USBListenerProxy before you hand them to Host.addUSBListener(usb.core.USBListener).


Constructor Summary
USBListenerAdapter()
          Default constructor does nothing.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

USBListenerAdapter

public USBListenerAdapter()
                   throws java.io.IOException
Default constructor does nothing.
Method Detail

busAdded

public void busAdded(Bus bus)
              throws java.io.IOException
Description copied from interface: USBListener
New bus added.
Specified by:
busAdded in interface USBListener

busRemoved

public void busRemoved(Bus bus)
                throws java.io.IOException
Description copied from interface: USBListener
Bus removed.
Specified by:
busRemoved in interface USBListener

deviceAdded

public void deviceAdded(Device dev)
                 throws java.io.IOException
Description copied from interface: USBListener
New device added.
Specified by:
deviceAdded in interface USBListener

deviceRemoved

public void deviceRemoved(Device dev)
                   throws java.io.IOException
Description copied from interface: USBListener
Device removed.
Specified by:
deviceRemoved in interface USBListener


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.