javax.usb
Interface UsbInterfacePolicy


public interface UsbInterfacePolicy

Interface describing the policy to claim an interface with.

Author:
Dan Streetman

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

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.

Parameters:
usbInterface - The UsbInterface being claimed.
Returns:
If the interface should be forcibly claimed.


Copyright © 2009 Eurotech Inc. All rights reserved.