Package org.apache.felix.gogo.runtime
Class Pipe
- java.lang.Object
-
- org.apache.felix.gogo.runtime.Pipe
-
- All Implemented Interfaces:
Callable<Pipe.Result>,Process
public class Pipe extends Object implements Callable<Pipe.Result>, Process
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPipe.Result-
Nested classes/interfaces inherited from interface org.apache.felix.service.command.Process
Process.Utils
-
-
Constructor Summary
Constructors Constructor Description Pipe(Closure closure, org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job, Parser.Statement statement, Channel[] streams, boolean[] toclose, boolean endOfPipe)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pipe.Resultcall()PrintStreamerr()voiderror(int error)Set the error code for the currently running pipe.static PipegetCurrentPipe()InputStreamin()booleanisTty(int fd)Check if the given descriptor for the currently running pipe is the terminal or not.Jobjob()Get the job controlling this processPrintStreamout()StringtoString()
-
-
-
Constructor Detail
-
Pipe
public Pipe(Closure closure, org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job, Parser.Statement statement, Channel[] streams, boolean[] toclose, boolean endOfPipe)
-
-
Method Detail
-
getCurrentPipe
public static Pipe getCurrentPipe()
-
in
public InputStream in()
-
out
public PrintStream out()
-
err
public PrintStream err()
-
job
public Job job()
Description copied from interface:ProcessGet the job controlling this process
-
isTty
public boolean isTty(int fd)
Description copied from interface:ProcessCheck if the given descriptor for the currently running pipe is the terminal or not.
-
error
public void error(int error)
Description copied from interface:ProcessSet the error code for the currently running pipe.
-
call
public Pipe.Result call()
- Specified by:
callin interfaceCallable<Pipe.Result>
-
-