All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.usb4java.javax.adapter.UsbDeviceAdapter Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013 Klaus Reimer 
 * See LICENSE.md for licensing information.
 */

package org.usb4java.javax.adapter;

import javax.usb.event.UsbDeviceDataEvent;
import javax.usb.event.UsbDeviceErrorEvent;
import javax.usb.event.UsbDeviceEvent;
import javax.usb.event.UsbDeviceListener;

/**
 * An abstract adapter class for receiving USB device events. The methods in
 * this class are empty. This class exists as convenience for creating listener
 * objects.
 * 
 * @author Klaus Reimer ([email protected])
 */
public abstract class UsbDeviceAdapter implements UsbDeviceListener
{
    @Override
    public void usbDeviceDetached(final UsbDeviceEvent event)
    {
        // Empty
    }

    @Override
    public void errorEventOccurred(final UsbDeviceErrorEvent event)
    {
        // Empty
    }

    @Override
    public void dataEventOccurred(final UsbDeviceDataEvent event)
    {
        // Empty
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy