|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.jusb.os.DefaultUsbPipeOsImp com.ibm.jusb.os.DefaultUsbControlPipeOsImp
public class DefaultUsbControlPipeOsImp
Default implementation for UsbControlPipeOsImp.
This is identical to DefaultUsbPipeOsImp except all the methods require
UsbControlIrpImps, not UsbIrpImps. This should be driven by a UsbControlPipeImp
,
not a normal UsbPipeImp
.
Field Summary |
---|
Fields inherited from class com.ibm.jusb.os.DefaultUsbPipeOsImp |
---|
HOST_CONTROLLER_OPEN_STRING, HOST_CONTROLLER_SUBMIT_STRING, OPEN_STRING, SUBMIT_STRING |
Constructor Summary | |
---|---|
DefaultUsbControlPipeOsImp()
Constructor. |
|
DefaultUsbControlPipeOsImp(boolean open)
Constructor. |
|
DefaultUsbControlPipeOsImp(java.lang.String open,
java.lang.String submit)
Constructor. |
Method Summary | |
---|---|
void |
asyncSubmit(UsbControlIrpImp irp)
Asynchronously submits this UsbControlIrpImp to the platform implementation. |
void |
asyncSubmit(UsbIrpImp irp)
Asynchronously submits this UsbIrpImp to the platform implementation. |
void |
syncSubmit(UsbControlIrpImp irp)
Synchronously submits this UsbControlIrpImp to the platform implementation. |
void |
syncSubmit(UsbIrpImp irp)
Synchronously submit a UsbControlIrpImp. |
Methods inherited from class com.ibm.jusb.os.DefaultUsbPipeOsImp |
---|
abortAllSubmissions, asyncSubmit, close, open, syncSubmit |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.jusb.os.UsbPipeOsImp |
---|
abortAllSubmissions, asyncSubmit, close, open, syncSubmit |
Constructor Detail |
---|
public DefaultUsbControlPipeOsImp()
public DefaultUsbControlPipeOsImp(java.lang.String open, java.lang.String submit)
open
- The String to use in UsbExceptions thrown in open()
.submit
- The String to use in UsbExceptions thrown in submit methods.public DefaultUsbControlPipeOsImp(boolean open)
If this is true, opening is allowed.
open
- If this should allow opening.Method Detail |
---|
public void syncSubmit(UsbIrpImp irp) throws UsbException, java.lang.ClassCastException
This casts the UsbIrpImp to a UsbControlIrpImp and uses the
syncSubmit(UsbControlIrpImp)
method.
syncSubmit
in interface UsbPipeOsImp
syncSubmit
in class DefaultUsbPipeOsImp
irp
- The UsbControlIrpImp to submit.
UsbException
- If syncSubmit(UsbControlIrpImp)
throws a UsbException.
java.lang.ClassCastException
public void asyncSubmit(UsbIrpImp irp) throws UsbException, java.lang.ClassCastException
This casts the UsbIrpImp to a UsbControlIrpImp and uses the
asyncSubmit(UsbControlIrpImp)
method.
asyncSubmit
in interface UsbPipeOsImp
asyncSubmit
in class DefaultUsbPipeOsImp
irp
- The UsbControlIrpImp to submit.
UsbException
- If asyncSubmit(UsbControlIrpImp)
throws a UsbException.
java.lang.ClassCastException
public void syncSubmit(UsbControlIrpImp irp) throws UsbException
This uses asyncSubmit(UsbControlIrpImp)
.
syncSubmit
in interface UsbControlPipeOsImp
irp
- the UsbControlIrpImp to use for this submission.
UsbException
- If the data transfer was unsuccessful.public void asyncSubmit(UsbControlIrpImp irp) throws UsbException
By default, this throws UsbException with the String defined by getSubmitString
.
The implementation should override (at least) this method.
asyncSubmit
in interface UsbControlPipeOsImp
irp
- the UsbControlIrpImp to use for this submission.
UsbException
- If the initial submission was unsuccessful.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |