Class UdfConsoleStream

java.lang.Object
java.io.OutputStream
dev.frostlake.executor.udf.UdfConsoleStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public final class UdfConsoleStream extends OutputStream
The OutputStream behind UdfConsolePrintStream: bytes written by a thread inside a UDF handler (UdfConsoleCapture.isCapturing()) are buffered per thread and relayed to the engine log line by line; every other write passes straight through to the original stream. Carriage returns are dropped so Windows-style line ends produce clean log lines.
  • Constructor Details

    • UdfConsoleStream

      public UdfConsoleStream(String streamName, PrintStream original)
  • Method Details