Class WriterStreamConsumer

java.lang.Object
org.apache.maven.shared.utils.cli.WriterStreamConsumer
All Implemented Interfaces:
StreamConsumer

public class WriterStreamConsumer extends Object implements StreamConsumer
Author:
Jason van Zyl
  • Constructor Details

    • WriterStreamConsumer

      public WriterStreamConsumer(Writer writer)
      Parameters:
      writer - Writer
  • Method Details

    • consumeLine

      public void consumeLine(String line) throws IOException
      Called when the StreamPumper pumps a line from the Stream.
      Specified by:
      consumeLine in interface StreamConsumer
      Parameters:
      line - The line to be consumed.
      Throws:
      IOException - if consuming line fails.