org.usb4java.Device
Structure representing a USB device detected on the system. This is an opaque type for which you are only ever provided with a pointer, usually originating from {@link LibUsb#getDeviceList(Context,DeviceList)}. Certain operations can be performed on a device, but in order to do any I/O you will have to first obtain a device handle using {@link LibUsb#open(Device,DeviceHandle)}. Devices are reference counted with {@link LibUsb#refDevice(Device)} and{@link LibUsb#unrefDevice(Device)}, and are freed when the reference count reaches 0. New devices presented by {@link LibUsb#getDeviceList(Context,DeviceList)} have a reference count of1, and {@link LibUsb#freeDeviceList(DeviceList,boolean)} can optionallydecrease the reference count on all devices in the list. {@link LibUsb#open(Device,DeviceHandle)} adds another reference which islater destroyed by {@link LibUsb#close(DeviceHandle)}.
@author Klaus Reimer (k@ailis.de)