|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--usb.core.USBListenerAdapter
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 |
public USBListenerAdapter() throws java.io.IOException
Method Detail |
public void busAdded(Bus bus) throws java.io.IOException
USBListener
busAdded
in interface USBListener
java.io.IOException
public void busRemoved(Bus bus) throws java.io.IOException
USBListener
busRemoved
in interface USBListener
java.io.IOException
public void deviceAdded(Device dev) throws java.io.IOException
USBListener
deviceAdded
in interface USBListener
java.io.IOException
public void deviceRemoved(Device dev) throws java.io.IOException
USBListener
deviceRemoved
in interface USBListener
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |