org.codehaus.plexus.util.cli
Class WriterStreamConsumer

java.lang.Object
  extended by org.codehaus.plexus.util.cli.WriterStreamConsumer
All Implemented Interfaces:
StreamConsumer

public class WriterStreamConsumer
extends java.lang.Object
implements StreamConsumer

Version:
$Id: WriterStreamConsumer.java 5956 2007-02-28 08:26:16Z olamy $
Author:
Jason van Zyl

Field Summary
private  java.io.PrintWriter writer
           
 
Constructor Summary
WriterStreamConsumer(java.io.Writer writer)
           
 
Method Summary
 void consumeLine(java.lang.String line)
          Called when the StreamPumper pumps a line from the Stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

private java.io.PrintWriter writer
Constructor Detail

WriterStreamConsumer

public WriterStreamConsumer(java.io.Writer writer)
Method Detail

consumeLine

public void consumeLine(java.lang.String line)
Description copied from interface: StreamConsumer
Called when the StreamPumper pumps a line from the Stream.

Specified by:
consumeLine in interface StreamConsumer