|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface AsyncInputStream.Listener
Callback interface required by AsyncInputStream.
| Method Summary | |
|---|---|
void |
handleEOF()
Handle end-of-file detected on the underlying input. |
void |
handleException(Throwable e)
Handle an exception detected on the underlying input. |
void |
handleInput(byte[] buf,
int off,
int len)
Handle new data read from the underlying input. |
| Method Detail |
|---|
void handleInput(byte[] buf,
int off,
int len)
buf - data bufferoff - starting offset of data in bufferlen - number of bytes of datavoid handleException(Throwable e)
Typically the assocaited AsyncInputStream will be closed in this callback.
e - the exception received (usually IOException but could also be any other RuntimeException)void handleEOF()
Typically the assocaited AsyncInputStream will be closed in this callback.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||