com.stevenrbrandt.ubiq2.v4.pattwo
Class ReaderStream

java.lang.Object
  extended by com.stevenrbrandt.ubiq2.v4.pattwo.Loader
      extended by com.stevenrbrandt.ubiq2.v4.pattwo.ReaderStream
All Implemented Interfaces:
CharStream

public class ReaderStream
extends Loader

Match a regex against a stream, reading in the minimum number of characters necessary.


Constructor Summary
ReaderStream(java.lang.StringBuffer sb, java.io.Reader r)
           
 
Method Summary
 boolean load()
          This method will be called whenever more characters are needed from the stream.
 
Methods inherited from class com.stevenrbrandt.ubiq2.v4.pattwo.Loader
charAt, charAtIs, lengthIs, lessThanLength, longerChanges, reset, subSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderStream

public ReaderStream(java.lang.StringBuffer sb,
                    java.io.Reader r)
Method Detail

load

public boolean load()
This method will be called whenever more characters are needed from the stream. Should return false on end of file.

Specified by:
load in interface CharStream
Specified by:
load in class Loader