isFinished

public boolean isFinished()

Returns whether this output stream has finished searching for its target literal.

This becomes true once the initial literal has been found with no further searches remaining because onMatchNext was set to null or returned null.

Return

true if this stream has completed all searches and will ignore further input; false otherwise.