Class PipeCommandInputServiceImpl
- java.lang.Object
-
- com.anrisoftware.globalpom.exec.internal.pipeoutputs.PipeCommandInputServiceImpl
-
- All Implemented Interfaces:
PipeCommandInputFactory,PipeCommandInputService
public class PipeCommandInputServiceImpl extends Object implements PipeCommandInputService
Pipe input service.- Since:
- 3.1
- Author:
- Erwin Mueller, erwin.mueller@deventm.org
-
-
Constructor Summary
Constructors Constructor Description PipeCommandInputServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandInputcreate(InputStream stream)Creates the pipe input that reads the specified stream to the standard input of the command.CommandInputfromString(String string)Pipes the string content to the standard input of the command.protected voidstart()
-
-
-
Method Detail
-
create
public CommandInput create(InputStream stream)
Description copied from interface:PipeCommandInputFactoryCreates the pipe input that reads the specified stream to the standard input of the command.- Specified by:
createin interfacePipeCommandInputFactory- Parameters:
stream- theInputStream.- Returns:
- the
CommandInput.
-
fromString
public CommandInput fromString(String string)
Description copied from interface:PipeCommandInputFactoryPipes the string content to the standard input of the command.- Specified by:
fromStringin interfacePipeCommandInputFactory- Parameters:
string- theString.- Returns:
- the
CommandInput.
-
start
protected void start()
-
-