|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ExpectOutputStream.Expector
Interface to be implemented by classes interested when the
event ExpectOutputStream
waits for happens.
ExpectOutputStream
Method Summary | |
---|---|
void |
closed(ExpectOutputStream out,
byte[] buf,
int len)
This function is called when the data stream is closed. |
void |
reached(ExpectOutputStream out,
byte[] buf,
int len)
This function is called whenever the expected string is found in the data stream. |
Method Detail |
---|
void reached(ExpectOutputStream out, byte[] buf, int len)
out
- the stream this happened on.buf
- a buffer containing all the data which has been
seen on the stream since the last time
reached
was called. Note that the
buffer may be bigger than needed.len
- how many bytes of data there is in the buffer.void closed(ExpectOutputStream out, byte[] buf, int len)
out
- the stream this happened on.buf
- a buffer containing all the data which has been
seen on the stream since the last time
reached
was called. Note that the
buffer may be bigger than needed.len
- how many bytes of data there is in the buffer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |