gs
Class Task

java.lang.Object
  extended by gs.Task
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ProcessTask

Deprecated. Replaced by Task.

public abstract class Task
extends Object
implements Runnable

base class for compilation processes.


Nested Class Summary
static class Task.Exception
          Deprecated. wraps any exception during run().
static class Task.In
          Deprecated. generic input source.
static class Task.Out
          Deprecated. generic output sink.
 
Field Summary
protected  Properties env
          Deprecated. properties, not null.
protected  Task.Out err
          Deprecated. diagnostic stream, not null.
protected  Task.In in
          Deprecated. input stream, not null.
protected  Task.Out out
          Deprecated. output stream, not null.
 
Constructor Summary
Task(Task.In in, Task.Out out, Task.Out err, Properties env)
          Deprecated. create the task, connect it to the standard streams, and provide options.
 
Method Summary
static Task.In In()
          Deprecated. factory method: no input.
static Task.In In(InputStream in)
          Deprecated. factory method: byte stream input.
static Task.In In(String string)
          Deprecated. factory method: string as input.
static Task.Out Out()
          Deprecated. factory method: no output.
static Task.Out Out(OutputStream out)
          Deprecated. factory method: byte stream output.
abstract  void run()
          Deprecated. execute the task (once only).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected final Task.In in
Deprecated. 
input stream, not null.


out

protected final Task.Out out
Deprecated. 
output stream, not null.


err

protected final Task.Out err
Deprecated. 
diagnostic stream, not null.


env

protected final Properties env
Deprecated. 
properties, not null.

Constructor Detail

Task

public Task(Task.In in,
            Task.Out out,
            Task.Out err,
            Properties env)
Deprecated. 
create the task, connect it to the standard streams, and provide options.

Parameters:
err - if null, redirected to out.
env - if null, defaulted to system properties if permitted.
Method Detail

run

public abstract void run()
                  throws Task.Exception
Deprecated. 
execute the task (once only). Any unexpected result should be reported as an Task.Exception.

Specified by:
run in interface Runnable
Throws:
Task.Exception

In

public static Task.In In()
Deprecated. 
factory method: no input.


In

public static Task.In In(String string)
Deprecated. 
factory method: string as input.


In

public static Task.In In(InputStream in)
Deprecated. 
factory method: byte stream input.


Out

public static Task.Out Out()
Deprecated. 
factory method: no output.


Out

public static Task.Out Out(OutputStream out)
Deprecated. 
factory method: byte stream output.