Class CommandLineUtils.StringStreamConsumer

java.lang.Object
org.apache.maven.shared.utils.cli.CommandLineUtils.StringStreamConsumer
All Implemented Interfaces:
StreamConsumer
Enclosing class:
CommandLineUtils

public static class CommandLineUtils.StringStreamConsumer extends Object implements StreamConsumer
A StreamConsumer providing consumed lines as a String.
See Also:
  • Constructor Details

    • StringStreamConsumer

      public StringStreamConsumer()
  • Method Details

    • consumeLine

      public void consumeLine(String line)
      Called when the StreamPumper pumps a line from the Stream.
      Specified by:
      consumeLine in interface StreamConsumer
      Parameters:
      line - The line to be consumed.
    • getOutput

      public String getOutput()
      Returns:
      The output.