|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.sys.PipePair
public abstract class PipePair
An abstract class for creating a pair of pipes wired up to a child process, with OUT wired to the child's STDIN, and IN wired to the child's stdout. The child process is created using the method spawn.
Field Summary | |
---|---|
FileDescriptor |
in
Read from this file descriptor. |
FileDescriptor |
out
Write to this file descriptor. |
ProcessIdentifier |
pid
File descriptor of process wired to the pipe. |
Constructor Summary | |
---|---|
protected |
PipePair(String[] args)
Create a pipe-pair and then wire it up. |
Method Summary | |
---|---|
static PipePair |
child(String[] args)
|
private static int |
child(String exe,
String[] args,
int in_in,
int in_out,
int out_in,
int out_out)
|
void |
close()
Shut down the pipes. |
static PipePair |
daemon(String[] args)
|
private static int |
daemon(String exe,
String[] args,
int in_in,
int in_out,
int out_in,
int out_out)
|
(package private) abstract int |
spawn(String[] args,
Pipe in,
Pipe out)
Called from the context of the child process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final FileDescriptor out
public final FileDescriptor in
public final ProcessIdentifier pid
Constructor Detail |
---|
protected PipePair(String[] args)
Method Detail |
---|
abstract int spawn(String[] args, Pipe in, Pipe out)
public void close()
public static PipePair daemon(String[] args)
private static int daemon(String exe, String[] args, int in_in, int in_out, int out_in, int out_out)
public static PipePair child(String[] args)
private static int child(String exe, String[] args, int in_in, int in_out, int out_in, int out_out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |