uicc.connection
Interface DataReceived

All Superinterfaces:
Event

public interface DataReceived
extends Event

This event notifies a UICCTransportLink or BIPLink about data reception. The object implementing DataReceived interface is a Temporary Entry Point Object.


Method Summary
 short copyReceivedData(int srcOffset, byte[] dstBuffer, short dstOffset, short dstLength)
          Copy the received data in a buffer.
 int getReceivedDataLength()
          Returns the amount of data received
 
Methods inherited from interface uicc.connection.Event
getObservable
 

Method Detail

getReceivedDataLength

int getReceivedDataLength()
Returns the amount of data received


copyReceivedData

short copyReceivedData(int srcOffset,
                       byte[] dstBuffer,
                       short dstOffset,
                       short dstLength)
Copy the received data in a buffer.

Parameters:
srcOffset - the offset of the first byte to copy in the received data
dstBuffer - a reference to the destination buffer
dstOffset - the position in the destination buffer
dstLength - the data length to be copied
Returns:
dstOffset+dstLength
Throws:
java.lang.NullPointerException - if dstBuffer is null
java.lang.ArrayIndexOutOfBoundsException - if dstOffset or dstLength or both would cause access outside array bounds, or if dstLength is negative.
ConnectionException - with the following reason code:
  • OUT_OF_DATA_BOUNDARIES if srcOffset or dstOffset or dstLength would cause access outside received data.
java.lang.NullPointerException - if dstBuffer is equal to null