|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.jusb.os.DefaultUsbInterfaceOsImp
public class DefaultUsbInterfaceOsImp
Default UsbInterfaceOsImp implementation.
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.
Constructor Summary | |
---|---|
DefaultUsbInterfaceOsImp()
Constructor. |
|
DefaultUsbInterfaceOsImp(boolean b)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUsbInterfaceOsImp()
public DefaultUsbInterfaceOsImp(boolean b)
b
- If claiming should be allowed or not.Method Detail |
---|
public void claim() throws UsbException
This performs a simple in-Java claim.
claim
in interface UsbInterfaceOsImp
UsbException
- if the interface could not be claimed.public void claim(UsbInterfacePolicy policy) throws UsbException
claim
in interface UsbInterfaceOsImp
policy
- 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 UsbInterfaceOsImp
UsbException
- If the interface could not be released.public boolean isClaimed()
This returns the state of the simple in-Java claim.
isClaimed
in interface UsbInterfaceOsImp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |