CheckingConsoleOutputStream

public final class CheckingConsoleOutputStream extends OutputStream

OutputStream which watches out for the occurrence of keywords (Strings).

Used to watch the console output of a ManagedProcess for a matching String.

Author

Nikan Radan

Constructors

Link copied to clipboard
public void CheckingConsoleOutputStream(String literal, @Nullable() @Nullable() Function<String, @Nullable() String> onMatchNext, @Nullable() @Nullable() Charset charset)
The public constructor.

Functions

Link copied to clipboard
public synchronized void close()
Link copied to clipboard
public void flush()
Link copied to clipboard
public boolean isFinished()
Returns whether this output stream has finished searching for its target literal.
Link copied to clipboard
Link copied to clipboard
public synchronized void write(int b)
public synchronized void write(Array<byte> b, int off, int len)