Class TTConsoleAnnotator
- java.lang.Object
-
- java.io.OutputStream
-
- hudson.console.LineTransformationOutputStream
-
- de.tracetronic.jenkins.plugins.ecutest.log.TTConsoleAnnotator
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class TTConsoleAnnotator extends LineTransformationOutputStream
Console annotator which annotates TT messages usingTTConsoleNote
. Annotated message has to start with [TT] prefix.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.console.LineTransformationOutputStream
LineTransformationOutputStream.Delegating
-
-
Constructor Summary
Constructors Constructor Description TTConsoleAnnotator(OutputStream out)
Instantiates a newTTConsoleAnnotator
.
-
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, write
-
-
-
-
Constructor Detail
-
TTConsoleAnnotator
public TTConsoleAnnotator(OutputStream out)
Instantiates a newTTConsoleAnnotator
.- Parameters:
out
- the output stream to write logs
-
-
Method Detail
-
eol
protected void eol(byte[] bytes, int len) throws IOException
- Specified by:
eol
in classLineTransformationOutputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classLineTransformationOutputStream
- Throws:
IOException
-
-