|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataReceived
This event notifies a UICCTransportLink, BIPLink or SCP81Connection about data reception.
The object implementing DataReceived
interface is a Temporary Entry Point Object.
| Method Summary | |
|---|---|
boolean |
contentTypeIsCorrect()
This method indicates if the Content-Type header field conforms to this specification. |
short |
copyReceivedData(int srcOffset,
byte[] dstBuffer,
short dstOffset,
short dstLength)
Copy the received data in a buffer. |
void |
discardRemainingData()
Discard data that have not been already read. |
int |
getReceivedDataLength()
Returns the amount of data received, or -1 if data length is unknown (chunked transfer encoding is used), or 0 if all received data have been read or discarded by the Observer. |
boolean |
responseIsComplete()
This method provides information if the transfer of the HTTP POST response was completely received. |
| Methods inherited from interface uicc.connection.Event |
|---|
getObservable |
| Method Detail |
|---|
int getReceivedDataLength()
Observer.
short copyReceivedData(int srcOffset,
byte[] dstBuffer,
short dstOffset,
short dstLength)
srcOffset>/code> parameter.
This is a non-blocking methid.
- Parameters:
srcOffset - the offset of the first byte to copy in the received datadstBuffer - a reference to the destination bufferdstOffset - the position in the destination bufferdstLength - the data length to be copied
- Returns:
dstOffset+length of the copied value
- 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.
INVALID_PARAMETER if the requested srcOffset could not be reached.
java.lang.NullPointerException - if dstBuffer is equal to null
boolean responseIsComplete()
boolean contentTypeIsCorrect()
void discardRemainingData()
ConnectionException - with the following reason code:
OPERATION_NOT_ALLOWED if all data have already been received or discarded.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||