Package dev.frostlake.executor.udf
Class UdfConsoleStream
java.lang.Object
java.io.OutputStream
dev.frostlake.executor.udf.UdfConsoleStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
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 Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, nullOutputStream, write
-
Constructor Details
-
UdfConsoleStream
-
-
Method Details
-
write
public void write(int b) - Specified by:
writein classOutputStream
-
write
public void write(byte[] buf, int off, int len) - Overrides:
writein classOutputStream
-
flush
public void flush()- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-