com.ibm.jusb
Class DefaultUsbInterfacePolicy

java.lang.Object
  extended by com.ibm.jusb.DefaultUsbInterfacePolicy
All Implemented Interfaces:
UsbInterfacePolicy

public class DefaultUsbInterfacePolicy
extends java.lang.Object
implements UsbInterfacePolicy

Default simple implementation of UsbInterfacePolicy.

Author:
Dan Streetman

Constructor Summary
DefaultUsbInterfacePolicy()
           
 
Method Summary
 boolean forceClaim(UsbInterface usbInterface)
          If the claim should be forced.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUsbInterfacePolicy

public DefaultUsbInterfacePolicy()
Method Detail

forceClaim

public boolean forceClaim(UsbInterface usbInterface)
If the claim should be forced.

This will try to forcibly claim the UsbInterface. This is only intended as a flag to the implementation to try everything possible to allow a successful claim. The implementation may try to override any other driver(s) that have the interface claimed.

The implementation is not required to use this flag.

WARNING: This should only be used if you are absolutely sure you want to drive the interface.

Specified by:
forceClaim in interface UsbInterfacePolicy
Parameters:
usbInterface - The UsbInterface being claimed.
Returns:
If the interface should be forcibly claimed.