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