public class Pipe extends java.lang.Object implements java.util.concurrent.Callable<Pipe.Result>, Process
| Modifier and Type | Class and Description |
|---|---|
static class |
Pipe.Result |
Process.Utils| Constructor and Description |
|---|
Pipe(Closure closure,
org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job,
Parser.Statement statement,
java.nio.channels.Channel[] streams,
boolean[] toclose) |
| Modifier and Type | Method and Description |
|---|---|
Pipe.Result |
call() |
java.io.PrintStream |
err() |
void |
error(int error)
Set the error code for the currently running pipe.
|
static Pipe |
getCurrentPipe() |
java.io.InputStream |
in() |
boolean |
isTty(int fd)
Check if the given descriptor for the currently running pipe is the terminal or not.
|
Job |
job()
Get the job controlling this process
|
java.io.PrintStream |
out() |
java.lang.String |
toString() |
public Pipe(Closure closure, org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job, Parser.Statement statement, java.nio.channels.Channel[] streams, boolean[] toclose)
public static Pipe getCurrentPipe()
public java.lang.String toString()
toString in class java.lang.Objectpublic Job job()
Processpublic boolean isTty(int fd)
Processpublic void error(int error)
Processpublic Pipe.Result call() throws java.lang.Exception
call in interface java.util.concurrent.Callable<Pipe.Result>java.lang.ExceptionCopyright © 2006-2016 The Apache Software Foundation. All Rights Reserved.