frysk.sys
Class PipePair

java.lang.Object
  extended by frysk.sys.PipePair

public abstract class PipePair
extends Object

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.
 
Method Summary
static PipePair child(String[] args)
           
 void close()
          Shut down the pipes.
static PipePair daemon(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

public final FileDescriptor out
Write to this file descriptor.


in

public final FileDescriptor in
Read from this file descriptor.


pid

public final ProcessIdentifier pid
File descriptor of process wired to the pipe.

Method Detail

close

public void close()
Shut down the pipes.


daemon

public static PipePair daemon(String[] args)

child

public static PipePair child(String[] args)