jfun.jaskell.shell
Class ShellFunctions

java.lang.Object
  extended by jfun.jaskell.shell.ShellFunctions

public class ShellFunctions
extends java.lang.Object

This class provides some reusable shell functions.

Author:
Ben Yu Jan 25, 2006 4:15:13 PM

Constructor Summary
ShellFunctions()
           
 
Method Summary
static Function fork(java.io.PrintStream out, java.io.PrintStream err, java.lang.String name)
          Create a function that can run an operating system command in a sub-process.
static Function fork(java.io.PrintStream out, java.lang.String name)
          Create a function that can run an operating system command in a sub-process.
static Function fork(java.io.PrintWriter out, java.io.PrintWriter err, java.lang.String name)
          Create a function that can run an operating system command in a sub-process.
static Function fork(java.io.PrintWriter out, java.lang.String name)
          Create a function that can run an operating system command in a sub-process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellFunctions

public ShellFunctions()
Method Detail

fork

public static Function fork(java.io.PrintStream out,
                            java.lang.String name)
Create a function that can run an operating system command in a sub-process.

Parameters:
out - the output.
name - the function name.
Returns:
the function.

fork

public static Function fork(java.io.PrintStream out,
                            java.io.PrintStream err,
                            java.lang.String name)
Create a function that can run an operating system command in a sub-process.

Parameters:
out - the standard output.
err - the error output.
name - the function name.
Returns:
the function.

fork

public static Function fork(java.io.PrintWriter out,
                            java.lang.String name)
Create a function that can run an operating system command in a sub-process.

Parameters:
out - the output.
name - the function name.
Returns:
the function.

fork

public static Function fork(java.io.PrintWriter out,
                            java.io.PrintWriter err,
                            java.lang.String name)
Create a function that can run an operating system command in a sub-process.

Parameters:
out - the standard output.
err - the error output.
name - the function name.
Returns:
the function.