gs
Class Task.In.Stream

java.lang.Object
  extended by gs.Task.In
      extended by gs.Task.In.Stream
Enclosing class:
Task.In

public static class Task.In.Stream
extends Task.In

byte stream as input source.


Nested Class Summary
 
Nested classes/interfaces inherited from class gs.Task.In
Task.In.None, Task.In.Stream, Task.In.String
 
Field Summary
protected  Task.In delegate
          delegate, if any.
protected  InputStream in
          not null.
 
Constructor Summary
protected Task.In.Stream(InputStream in)
           
 
Method Summary
protected  Task.In delegate()
          reads all and sets delegate (once only).
 Matcher match(Pattern pattern)
          reads all and sets delegate on first access.
 String toString()
          reads all and sets delegate on first access.
 void write(OutputStream out)
          copy entire content (once only).
 void write(Writer out)
          copy entire content (once only).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected Task.In delegate
delegate, if any.


in

protected final InputStream in
not null.

Constructor Detail

Task.In.Stream

protected Task.In.Stream(InputStream in)
Method Detail

match

public Matcher match(Pattern pattern)
              throws IOException
reads all and sets delegate on first access.

Specified by:
match in class Task.In
Throws:
IOException

write

public void write(OutputStream out)
           throws IOException
Description copied from class: Task.In
copy entire content (once only).

Specified by:
write in class Task.In
Throws:
IOException

write

public void write(Writer out)
           throws IOException
Description copied from class: Task.In
copy entire content (once only).

Specified by:
write in class Task.In
Throws:
IOException

toString

public String toString()
reads all and sets delegate on first access.

Specified by:
toString in class Task.In

delegate

protected Task.In delegate()
                    throws IOException
reads all and sets delegate (once only).

Throws:
IOException