|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.jusb.os.DefaultUsbDeviceOsImp
public class DefaultUsbDeviceOsImp
Default UsbDeviceOsImp implementation.
This is an optional default implementation that handles all methods. Those
methods may be overridden by the implementation if desired. The implementation
is not required to extend this class. All methods are implemented using the
asyncSubmit(UsbControlIrpImp)
method; this method,
at a minimum, must be implemented in order to provide any actual functionality.
The default action for this class is to throw a UsbException for all submission methods.
Field Summary | |
---|---|
static java.lang.String |
HOST_CONTROLLER_SUBMIT_STRING
|
static java.lang.String |
SUBMIT_STRING
|
Constructor Summary | |
---|---|
DefaultUsbDeviceOsImp()
Constructor. |
|
DefaultUsbDeviceOsImp(java.lang.String submitString)
Constructor. |
Method Summary | |
---|---|
void |
asyncSubmit(java.util.List list)
Asynchronously submit a List of UsbControlIrpImps. |
void |
asyncSubmit(UsbControlIrpImp usbControlIrpImp)
Asynchronously submit a UsbControlIrpImp. |
void |
syncSubmit(java.util.List list)
Synchronously submit a List of UsbControlIrpImps. |
void |
syncSubmit(UsbControlIrpImp usbControlIrpImp)
Synchronously submit a UsbControlIrpImp. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SUBMIT_STRING
public static final java.lang.String HOST_CONTROLLER_SUBMIT_STRING
Constructor Detail |
---|
public DefaultUsbDeviceOsImp()
public DefaultUsbDeviceOsImp(java.lang.String submitString)
submitString
- The String to be used in UsbExceptions thrown from a submission method.Method Detail |
---|
public void syncSubmit(UsbControlIrpImp usbControlIrpImp) throws UsbException
This method is implemented using asyncSubmit(UsbControlIrpImp)
.
syncSubmit
in interface UsbDeviceOsImp
usbControlIrpImp
- The UsbControlIrpImp.
UsbException
- If the submission is unsuccessful.public void asyncSubmit(UsbControlIrpImp usbControlIrpImp) throws UsbException
This throws a UsbException with the specified string
.
The implementation should override (at least) this method.
asyncSubmit
in interface UsbDeviceOsImp
usbControlIrpImp
- The UsbControlIrpImp.
UsbException
- If the submission is unsucessful.public void syncSubmit(java.util.List list) throws UsbException
This method is implemented using syncSubmit(UsbControlIrpImp)
.
If an UsbException occurrs, it is thrown immediately and any remaining UsbControlIrpImps are not submitted nor modified.
syncSubmit
in interface UsbDeviceOsImp
list
- The List.
UsbException
- If the one (or more) submissions are unsuccessful (optional).public void asyncSubmit(java.util.List list) throws UsbException
This method is implemented using asyncSubmit(UsbControlIrpImp)
.
If an UsbException occurrs, it is thrown immediately and any remaining UsbControlIrpImps are not submitted nor modified.
asyncSubmit
in interface UsbDeviceOsImp
list
- The List.
UsbException
- If the one (or more) submissions are unsuccessful (optional).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |