|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JRexStreamListener interface is java counter part of nsIStreamListener.
Method Summary | |
boolean |
onDataAvailable(String requestURI,
int requestStatus,
boolean isRequestPending,
Object ctxt,
JRexInputStream in,
int off,
int len)
Called when the next chunk of data (corresponding to the request) may be read without blocking the calling thread. |
boolean |
onStartRequest(String requestURI,
int requestStatus,
boolean isRequestPending,
Object ctxt)
Called to signify the beginning of an asynchronous request. |
void |
onStopRequest(String requestURI,
int requestStatus,
boolean isRequestPending,
Object ctxt,
int statusCode)
Called to signify the end of an asynchronous request. |
Method Detail |
public boolean onStartRequest(String requestURI, int requestStatus, boolean isRequestPending, Object ctxt)
requestURI
- request URI corresponding to the source of the datarequestStatus
- request Status corresponding to the source of the dataisRequestPending
- request pending corresponding to the source of the datactxt
- user defined context
false
to cancel the request.public void onStopRequest(String requestURI, int requestStatus, boolean isRequestPending, Object ctxt, int statusCode)
requestURI
- request URI corresponding to the source of the datarequestStatus
- request Status corresponding to the source of the dataisRequestPending
- request pending corresponding to the source of the datactxt
- user defined contextstatusCode
- reason for stopping, NS_OK if successful.public boolean onDataAvailable(String requestURI, int requestStatus, boolean isRequestPending, Object ctxt, JRexInputStream in, int off, int len)
requestURI
- request URI corresponding to the source of the datarequestStatus
- request Status corresponding to the source of the dataisRequestPending
- request pending corresponding to the source of the datactxt
- user defined contextin
- input stream containing the data chunkoff
- current stream positionlen
- number of bytes available in the stream
false
to cancel the request.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |