The behavior and defaults follow those defined in the interface.
Any of the fields may be updated if the default is not appropriate; in most cases
the data will be the only field that needs to be set.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected int | |
| protected boolean | |
| protected byte[] | |
| protected int | |
| protected int | |
| protected UsbException | |
| private Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | DefaultUsbIrp(byte[]
The data. data, int The offset. offset, int The length. length, boolean The Short Packet policy. shortPacket)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: The Short Packet policy.Implements javax. |
| public int | Returns: The actual length.Implements javax. |
| public byte[] | |
| public int | |
| public int | |
| public UsbException | Returns: The UsbException, or null.Implements javax. |
| public boolean | Returns: If this is complete.Implements javax. |
| public boolean | Returns: If a UsbException occurred.Implements javax. |
| public void | setAcceptShortPacket(boolean
The Short Packet policy. accept)Implements javax. |
| public void | setActualLength(int
The actual length. l)Implements javax. |
| public void | setComplete(boolean
If this is complete (or not). b)Implements javax. |
| public void | setData(byte[]
The data. d, int The offset. o, int The length. l)Implements javax. |
| public void | |
| public void | |
| public void | |
| public void | setUsbException(UsbException
The UsbException. exception)Implements javax. |
| public void | |
| public void | waitUntilComplete(long
The maximum number of milliseconds to wait. timeout)Implements javax. complete, or the timeout has expired.
|
| acceptShortPacket | back to summary |
|---|---|
| protected boolean acceptShortPacket | |
| actualLength | back to summary |
|---|---|
| protected int actualLength | |
| complete | back to summary |
|---|---|
| protected boolean complete | |
| data | back to summary |
|---|---|
| protected byte[] data | |
| length | back to summary |
|---|---|
| protected int length | |
| offset | back to summary |
|---|---|
| protected int offset | |
| usbException | back to summary |
|---|---|
| protected UsbException usbException | |
| waitLock | back to summary |
|---|---|
| private Object waitLock | |
| DefaultUsbIrp | back to summary |
|---|---|
| public DefaultUsbIrp() Constructor. | |
| DefaultUsbIrp | back to summary |
|---|---|
| public DefaultUsbIrp(byte[] data) Constructor.
| |
| DefaultUsbIrp | back to summary |
|---|---|
| public DefaultUsbIrp(byte[] data, int offset, int length, boolean shortPacket) Constructor.
| |
| complete | back to summary |
|---|---|
| public void complete() Implements javax. Complete this submission. This will:
| |
| getAcceptShortPacket | back to summary |
|---|---|
| public boolean getAcceptShortPacket() Implements javax. Get the Short Packet policy.
| |
| getActualLength | back to summary |
|---|---|
| public int getActualLength() Implements javax. Get the actual length.
| |
| getData | back to summary |
|---|---|
| public byte[] getData() Implements javax. Get the data.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements javax. Get the length.
| |
| getOffset | back to summary |
|---|---|
| public int getOffset() Implements javax. Get the offset.
| |
| getUsbException | back to summary |
|---|---|
| public UsbException getUsbException() Implements javax. Get the UsbException.
| |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() Implements javax. If this is complete.
| |
| isUsbException | back to summary |
|---|---|
| public boolean isUsbException() Implements javax. If a UsbException occurred.
| |
| setAcceptShortPacket | back to summary |
|---|---|
| public void setAcceptShortPacket(boolean accept) Implements javax. Set the Short Packet policy.
| |
| setActualLength | back to summary |
|---|---|
| public void setActualLength(int l) throws IllegalArgumentException Implements javax. Set the actual length.
| |
| setComplete | back to summary |
|---|---|
| public void setComplete(boolean b) Implements javax. Set this as complete (or not).
| |
| setData | back to summary |
|---|---|
| public void setData(byte[] d, int o, int l) throws IllegalArgumentException Implements javax. Set the data, offset, and length.
| |
| setData | back to summary |
|---|---|
| public void setData(byte[] d) throws IllegalArgumentException Implements javax. Set the data.
| |
| setLength | back to summary |
|---|---|
| public void setLength(int l) throws IllegalArgumentException Implements javax. Set the length.
| |
| setOffset | back to summary |
|---|---|
| public void setOffset(int o) throws IllegalArgumentException Implements javax. Set the offset.
| |
| setUsbException | back to summary |
|---|---|
| public void setUsbException(UsbException exception) Implements javax. Set the UsbException.
| |
| waitUntilComplete | back to summary |
|---|---|
| public void waitUntilComplete() Implements javax. Wait until
This will block until this is | |
| waitUntilComplete | back to summary |
|---|---|
| public void waitUntilComplete(long timeout) Implements javax. Wait until
This will block until this is
| |