public class DefaultUsbInterfaceOsImp extends Object implements UsbInterfaceOsImp
This provides a simple in-Java claiming implementation. By default claiming is allowed. If the 1-parameter constructor is used, its value determines if claiming is allowed or denied.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowClaim |
protected boolean |
isClaimed |
| Constructor and Description |
|---|
DefaultUsbInterfaceOsImp()
Constructor.
|
DefaultUsbInterfaceOsImp(boolean b)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
claim()
Claim this interface.
|
void |
claim(UsbInterfacePolicy policy)
Claim this interface using a UsbInterfacePolicy.
|
boolean |
isClaimed()
Indicate if this interface is claimed.
|
void |
release()
Release this interface.
|
public DefaultUsbInterfaceOsImp()
public DefaultUsbInterfaceOsImp(boolean b)
b - If claiming should be allowed or not.public void claim()
throws UsbException
This performs a simple in-Java claim.
claim in interface UsbInterfaceOsImpUsbException - if the interface could not be claimed.public void claim(UsbInterfacePolicy policy) throws UsbException
claim in interface UsbInterfaceOsImppolicy - The this class ignores the policy.UsbException - if the interface could not be claimed.public void release()
throws UsbException
This performs a simple in-Java release.
release in interface UsbInterfaceOsImpUsbException - If the interface could not be released.public boolean isClaimed()
This returns the state of the simple in-Java claim.
isClaimed in interface UsbInterfaceOsImpCopyright © 2014 LSST. All Rights Reserved.