hudson.model
Class StreamBuildListener

java.lang.Object
  extended by hudson.util.AbstractTaskListener
      extended by hudson.util.StreamTaskListener
          extended by hudson.model.StreamBuildListener
All Implemented Interfaces:
BuildListener, TaskListener, Closeable, Serializable

public class StreamBuildListener
extends StreamTaskListener
implements BuildListener

BuildListener that writes to an OutputStream. This class is remotable.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface hudson.model.TaskListener
NULL
 
Constructor Summary
StreamBuildListener(File out, Charset charset)
           
StreamBuildListener(OutputStream w)
           
StreamBuildListener(OutputStream out, Charset charset)
           
StreamBuildListener(PrintStream w)
          Deprecated. as of 1.349 The caller should use StreamBuildListener(OutputStream, Charset) to pass in the charset and output stream separately, so that this class can handle encoding correctly.
StreamBuildListener(PrintStream w, Charset charset)
           
 
Method Summary
 void finished(Result result)
          Called when a build is finished.
 void started(List<Cause> causes)
          Called when a build is started.
 
Methods inherited from class hudson.util.StreamTaskListener
annotate, close, closeQuietly, error, error, fatalError, fatalError, fromStderr, fromStdout, getLogger
 
Methods inherited from class hudson.util.AbstractTaskListener
hyperlink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.TaskListener
annotate, error, error, fatalError, fatalError, getLogger, hyperlink
 

Constructor Detail

StreamBuildListener

public StreamBuildListener(OutputStream out,
                           Charset charset)

StreamBuildListener

public StreamBuildListener(File out,
                           Charset charset)
                    throws IOException
Throws:
IOException

StreamBuildListener

public StreamBuildListener(OutputStream w)

StreamBuildListener

public StreamBuildListener(PrintStream w)
Deprecated. as of 1.349 The caller should use StreamBuildListener(OutputStream, Charset) to pass in the charset and output stream separately, so that this class can handle encoding correctly.


StreamBuildListener

public StreamBuildListener(PrintStream w,
                           Charset charset)
Method Detail

started

public void started(List<Cause> causes)
Description copied from interface: BuildListener
Called when a build is started.

Specified by:
started in interface BuildListener
Parameters:
causes - Causes that started a build. See Run.getCauses().

finished

public void finished(Result result)
Description copied from interface: BuildListener
Called when a build is finished.

Specified by:
finished in interface BuildListener


Copyright © 2004-2013. All Rights Reserved.