Class CommandChain.InputStreamThread

java.lang.Object
java.lang.Thread
org.codelibs.fess.auth.chain.CommandChain.InputStreamThread
All Implemented Interfaces:
Runnable
Enclosing class:
CommandChain

protected static class CommandChain.InputStreamThread extends Thread
Thread that reads input stream data and buffers it for later retrieval. Captures output from command execution with configurable line buffering.
  • Constructor Details

    • InputStreamThread

      public InputStreamThread(InputStream is, String charset, int maxOutputLineBuffer)
      Constructor for InputStreamThread.
      Parameters:
      is - The input stream to read from.
      charset - The character encoding to use.
      maxOutputLineBuffer - The maximum number of lines to buffer.
  • Method Details

    • run

      public void run()
      Runs the input stream thread, reading lines and buffering them.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • getOutput

      public String getOutput()
      Gets the captured output as a single string.
      Returns:
      The captured output with newlines.