Class ScriptLogWriter

java.lang.Object
java.io.Writer
de.ubs.xdm3.util.ScriptLogWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class ScriptLogWriter extends Writer
A custom writer that logs script output line by line using a provided handler. This class extends the Writer class and buffers the output until a newline character is encountered. The buffered line is then passed to the handler for processing.
  • Constructor Details

    • ScriptLogWriter

      public ScriptLogWriter(ScriptLogWriter.PrintHandler handler)
      Constructs a new ScriptLogWriter with the specified handler.
      Parameters:
      handler - the handler to process the lines written by this writer
  • Method Details