hudson.tasks._maven
Class MavenConsoleAnnotator

java.lang.Object
  extended by java.io.OutputStream
      extended by hudson.console.LineTransformationOutputStream
          extended by hudson.tasks._maven.MavenConsoleAnnotator
All Implemented Interfaces:
Closeable, Flushable

public class MavenConsoleAnnotator
extends LineTransformationOutputStream

Filter OutputStream that places annotations that marks various Maven outputs.

Author:
Kohsuke Kawaguchi

Constructor Summary
MavenConsoleAnnotator(OutputStream out, Charset charset)
           
 
Method Summary
 void close()
           
protected  void eol(byte[] b, int len)
          Called for each end of the line.
 
Methods inherited from class hudson.console.LineTransformationOutputStream
forceEol, trimEOL, write, write
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenConsoleAnnotator

public MavenConsoleAnnotator(OutputStream out,
                             Charset charset)
Method Detail

eol

protected void eol(byte[] b,
                   int len)
            throws IOException
Description copied from class: LineTransformationOutputStream
Called for each end of the line.

Specified by:
eol in class LineTransformationOutputStream
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

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class LineTransformationOutputStream
Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.