com.ibm.jusb.event
Class UsbDeviceListenerImp

java.lang.Object
  extended by com.ibm.jusb.event.EventListenerImp
      extended by com.ibm.jusb.event.UsbDeviceListenerImp
All Implemented Interfaces:
java.util.EventListener, UsbDeviceListener

public class UsbDeviceListenerImp
extends EventListenerImp
implements UsbDeviceListener

Implementation of UsbDeviceListener.

Author:
Dan Streetman

Constructor Summary
UsbDeviceListenerImp()
           
 
Method Summary
 void dataEventOccurred(UsbDeviceDataEvent event)
          Data was successfully transferred.
 void errorEventOccurred(UsbDeviceErrorEvent event)
          An error occurred.
 void usbDeviceDetached(UsbDeviceEvent event)
          The UsbDevice was detached.
 
Methods inherited from class com.ibm.jusb.event.EventListenerImp
addEventListener, clear, getName, isEmpty, removeEventListener, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsbDeviceListenerImp

public UsbDeviceListenerImp()
Method Detail

errorEventOccurred

public void errorEventOccurred(UsbDeviceErrorEvent event)
Description copied from interface: UsbDeviceListener
An error occurred.

Specified by:
errorEventOccurred in interface UsbDeviceListener
Parameters:
event - The Event to fire.

dataEventOccurred

public void dataEventOccurred(UsbDeviceDataEvent event)
Description copied from interface: UsbDeviceListener
Data was successfully transferred.

Specified by:
dataEventOccurred in interface UsbDeviceListener
Parameters:
event - The Event to fire.

usbDeviceDetached

public void usbDeviceDetached(UsbDeviceEvent event)
Description copied from interface: UsbDeviceListener
The UsbDevice was detached.

Specified by:
usbDeviceDetached in interface UsbDeviceListener
Parameters:
event - The Event to fire.