com.mindbright.util
public static interface ExpectOutputStream.Expector
ExpectOutputStream
waits for happens.ExpectOutputStream
Modifier and Type | Method and Description |
---|---|
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.
|
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.