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
AStreamConsumerproviding 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 voidconsumeLine(String line)Called when the StreamPumper pumps a line from the Stream.StringgetOutput()
-
-
-
Method Detail
-
consumeLine
public void consumeLine(String line)
Description copied from interface:StreamConsumerCalled when the StreamPumper pumps a line from the Stream.- Specified by:
consumeLinein interfaceStreamConsumer- Parameters:
line- The line to be consumed.
-
getOutput
public String getOutput()
-
-