gs
Class Task.Out

java.lang.Object
  extended by gs.Task.Out
Direct Known Subclasses:
Task.Out.None, Task.Out.Stream
Enclosing class:
Task

public abstract static class Task.Out
extends Object

generic output sink.


Nested Class Summary
static class Task.Out.None
          black hole as output sink.
static class Task.Out.Stream
          byte stream as output sink.
 
Field Summary
protected  Task.Exception exception
          (first) exception thrown by any reader thread.
 
Constructor Summary
Task.Out()
           
 
Method Summary
abstract  Thread beginRead(InputStream in)
          start reading.
 void endRead(Thread thread)
          wait for reading to end.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception

protected Task.Exception exception
(first) exception thrown by any reader thread.

Constructor Detail

Task.Out

public Task.Out()
Method Detail

beginRead

public abstract Thread beginRead(InputStream in)
start reading.


endRead

public void endRead(Thread thread)
             throws Task.Exception
wait for reading to end.

Throws:
Task.Exception