Package com.tsystems.sbs
Class LogFileFilterOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- hudson.console.LineTransformationOutputStream
-
- com.tsystems.sbs.LogFileFilterOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class LogFileFilterOutputStream extends LineTransformationOutputStream
This class deals with the actual filtering of the console using the configured regexes. Bear in mind that for now only one line expressions are possible.- Author:
- ccapdevi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.console.LineTransformationOutputStream
LineTransformationOutputStream.Delegating
-
-
Constructor Summary
Constructors Constructor Description LogFileFilterOutputStream(OutputStream out, Charset charset, String jobName, LogFileFilterConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
eol(byte[] bytes, int len)
-
Methods inherited from class hudson.console.LineTransformationOutputStream
forceEol, trimEOL, write, write
-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
-
-
-
Constructor Detail
-
LogFileFilterOutputStream
public LogFileFilterOutputStream(OutputStream out, Charset charset, String jobName, LogFileFilterConfig config)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classLineTransformationOutputStream
- Throws:
IOException
-
eol
protected void eol(byte[] bytes, int len) throws IOException
- Specified by:
eol
in classLineTransformationOutputStream
- Throws:
IOException
-
-