org.apache.maven.shared.invoker
Class PrintStreamHandler

java.lang.Object
  extended by org.apache.maven.shared.invoker.PrintStreamHandler
All Implemented Interfaces:
InvocationOutputHandler, StreamConsumer
Direct Known Subclasses:
SystemOutHandler

public class PrintStreamHandler
extends Object
implements InvocationOutputHandler

Offers an output handler that writes to a print stream like System.out.

Since:
2.0.9
Version:
$Id: PrintStreamHandler.java 681956 2008-08-02 11:43:44Z dennisl $

Constructor Summary
PrintStreamHandler()
          Creates a new output handler that writes to System.out.
PrintStreamHandler(PrintStream out, boolean alwaysFlush)
          Creates a new output handler that writes to the specified print stream.
 
Method Summary
 void consumeLine(String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamHandler

public PrintStreamHandler()
Creates a new output handler that writes to System.out.


PrintStreamHandler

public PrintStreamHandler(PrintStream out,
                          boolean alwaysFlush)
Creates a new output handler that writes to the specified print stream.

Parameters:
out - The print stream to write to, must not be null.
alwaysFlush - A flag whether the print stream should be flushed after each line.
Method Detail

consumeLine

public void consumeLine(String line)
Specified by:
consumeLine in interface StreamConsumer


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.