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
  • Constructor Details

    • Pipe

      public Pipe(Closure closure, org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job, Parser.Statement statement, Channel[] streams, boolean[] toclose, boolean endOfPipe)
  • Method Details

    • getCurrentPipe

      public static Pipe getCurrentPipe()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • in

      public InputStream in()
      Specified by:
      in in interface Process
    • out

      public PrintStream out()
      Specified by:
      out in interface Process
    • err

      public PrintStream err()
      Specified by:
      err in interface Process
    • job

      public Job job()
      Description copied from interface: Process
      Get the job controlling this process
      Specified by:
      job in interface Process
      Returns:
      Job
    • isTty

      public boolean isTty(int fd)
      Description copied from interface: Process
      Check if the given descriptor for the currently running pipe is the terminal or not.
      Specified by:
      isTty in interface Process
      Parameters:
      fd - the fd
      Returns:
      boolean
    • error

      public void error(int error)
      Description copied from interface: Process
      Set the error code for the currently running pipe.
      Specified by:
      error in interface Process
      Parameters:
      error - the error
    • call

      public Pipe.Result call()
      Specified by:
      call in interface Callable<Pipe.Result>