Callable<Pipe.Result>, Processpublic class Pipe extends Object implements Callable<Pipe.Result>, Process
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Pipe.Result |
Process.Utils| Constructor | 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 | 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–2019 The Apache Software Foundation. All rights reserved.