|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject javax.usb.event.UsbPipeEvent javax.usb.event.UsbPipeDataEvent
public class UsbPipeDataEvent
Indicates data was successfully transferred over the UsbPipe.
This event will be fired to all listeners for all data that is transferred over the pipe.
Constructor Summary | |
---|---|
UsbPipeDataEvent(UsbPipe source,
byte[] d,
int aL)
Constructor. |
|
UsbPipeDataEvent(UsbPipe source,
UsbIrp uI)
Constructor. |
Method Summary | |
---|---|
int |
getActualLength()
Get the actual length. |
byte[] |
getData()
Get the data. |
Methods inherited from class javax.usb.event.UsbPipeEvent |
---|
getUsbIrp, getUsbPipe, hasUsbIrp |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UsbPipeDataEvent(UsbPipe source, byte[] d, int aL)
This should only be used if there is no UsbIrp associated with this event.
source
- The UsbPipe.d
- The data.aL
- The actual length of data transferred.public UsbPipeDataEvent(UsbPipe source, UsbIrp uI)
source
- The UsbPipe.uI
- The UsbIrp.Method Detail |
---|
public byte[] getData()
If there is an associated UsbIrp, this returns a new byte[] containing only the actual transferred data. If there is no associated UsbIrp, this returns the actual data buffer used.
public int getActualLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |