com.ibm.jusb
Class DefaultUsbInterfacePolicy
java.lang.Object
com.ibm.jusb.DefaultUsbInterfacePolicy
- All Implemented Interfaces:
- UsbInterfacePolicy
public class DefaultUsbInterfacePolicy
- extends Object
- implements UsbInterfacePolicy
Default simple implementation of UsbInterfacePolicy.
- Author:
- Dan Streetman
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUsbInterfacePolicy
public DefaultUsbInterfacePolicy()
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.
Copyright © 2012 LSST. All Rights Reserved.