CheckingConsoleOutputStream

public void CheckingConsoleOutputStream(String literal, @Nullable() @Nullable() Function<String, @Nullable() String> onMatchNext, @Nullable() @Nullable() Charset charset)

The public constructor.

Parameters

literal

the first literal that's searched for.

onMatchNext

if this is null it isn't used. If it's not null, whenever the literal is found, this callback is called. If null is returned, it stops searching. If a String it returned, it continues to search for said returned String.

charset

the Charset that's used. If null it defaults to defaultCharset.