public class Pipe extends Object implements 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,
Channel[] streams,
boolean[] toclose,
boolean endOfPipe) |
| Modifier and Type | Method and Description |
|---|---|
Pipe.Result |
call() |
PrintStream |
err() |
void |
error(int error)
Set the error code for the currently running pipe.
|
static Pipe |
getCurrentPipe() |
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
|
PrintStream |
out() |
String |
toString() |
public Pipe(Closure closure, org.apache.felix.gogo.runtime.CommandSessionImpl.JobImpl job, Parser.Statement statement, Channel[] streams, boolean[] toclose, boolean endOfPipe)
public static Pipe getCurrentPipe()
public InputStream in()
public PrintStream out()
public PrintStream err()
public Job job()
Processpublic boolean isTty(int fd)
Processpublic void error(int error)
Processpublic Pipe.Result call()
call in interface Callable<Pipe.Result>Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.