Package hudson.tasks._maven
Class MavenConsoleAnnotator
- java.lang.Object
-
- java.io.OutputStream
-
- hudson.console.LineTransformationOutputStream
-
- hudson.console.LineTransformationOutputStream.Delegating
-
- hudson.tasks._maven.MavenConsoleAnnotator
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class MavenConsoleAnnotator extends LineTransformationOutputStream.Delegating
FilterOutputStreamthat places annotations that marks various Maven outputs.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.console.LineTransformationOutputStream
LineTransformationOutputStream.Delegating
-
-
Field Summary
-
Fields inherited from class hudson.console.LineTransformationOutputStream.Delegating
out
-
-
Constructor Summary
Constructors Constructor Description MavenConsoleAnnotator(OutputStream out, Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voideol(byte[] b, int len)Called for each end of the line.-
Methods inherited from class hudson.console.LineTransformationOutputStream.Delegating
close, flush
-
Methods inherited from class hudson.console.LineTransformationOutputStream
forceEol, trimEOL, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Constructor Detail
-
MavenConsoleAnnotator
public MavenConsoleAnnotator(OutputStream out, Charset charset)
-
-
Method Detail
-
eol
protected void eol(byte[] b, int len) throws IOExceptionDescription copied from class:LineTransformationOutputStreamCalled for each end of the line.- Specified by:
eolin classLineTransformationOutputStream- Parameters:
b- Contents of the whole line, including the EOL code like CR/LF.len- Specifies the length of the valid contents in 'b'. The rest is garbage. This is so that the caller doesn't have to allocate an array of the exact size.- Throws:
IOException
-
-