Package org.codehaus.plexus.util.cli
Class CommandLineUtils.StringStreamConsumer
- java.lang.Object
-
- org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer
-
- All Implemented Interfaces:
StreamConsumer
- Enclosing class:
- CommandLineUtils
public static class CommandLineUtils.StringStreamConsumer extends Object implements StreamConsumer
AStreamConsumer
providing consumed lines as aString
.- See Also:
getOutput()
-
-
Constructor Summary
Constructors Constructor Description StringStreamConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeLine(String line)
Called when the StreamPumper pumps a line from the Stream.String
getOutput()
-
-
-
Method Detail
-
consumeLine
public void consumeLine(String line)
Description copied from interface:StreamConsumer
Called when the StreamPumper pumps a line from the Stream.- Specified by:
consumeLine
in interfaceStreamConsumer
- Parameters:
line
- The line to be consumed.
-
getOutput
public String getOutput()
-
-