gs
Class Task.In

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

public abstract static class Task.In
extends Object

generic input source.


Nested Class Summary
static class Task.In.None
          empty input as input source.
static class Task.In.Stream
          byte stream as input source.
static class Task.In.String
          string as input source.
 
Constructor Summary
Task.In()
           
 
Method Summary
abstract  Matcher match(Pattern pattern)
          match head of content to pattern.
abstract  String toString()
          shows content.
abstract  void write(OutputStream out)
          copy entire content (once only).
abstract  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
 

Constructor Detail

Task.In

public Task.In()
Method Detail

write

public abstract void write(OutputStream out)
                    throws IOException
copy entire content (once only).

Throws:
IOException

write

public abstract void write(Writer out)
                    throws IOException
copy entire content (once only).

Throws:
IOException

match

public abstract Matcher match(Pattern pattern)
                       throws IOException
match head of content to pattern.

Throws:
IOException

toString

public abstract String toString()
shows content.

Overrides:
toString in class Object