Interface ExpectedOutputHandler

  • All Known Implementing Classes:
    DummyExpectedOutputHandler

    public interface ExpectedOutputHandler
    The expected target (remote host or executable) may produce output (e.g. stdout or stderr), in such cases the caller shall provider handlers for the output when calling Expect.expectClose to handle the output properly. If the caller won't care about the generated output, a predefined DummyExpectedOutputHandler will be used to simply ignore the outputs generated.
    • Method Detail

      • handle

        void handle​(java.nio.ByteBuffer output)
        Handle output
        Parameters:
        output - The output byte buffer