org.codehaus.groovy.syntax.lexer
Class ReaderCharStream

java.lang.Object
  extended byorg.codehaus.groovy.syntax.lexer.AbstractCharStream
      extended byorg.codehaus.groovy.syntax.lexer.ReaderCharStream
All Implemented Interfaces:
CharStream

public class ReaderCharStream
extends AbstractCharStream


Field Summary
private  java.io.Reader in
           
 
Fields inherited from class org.codehaus.groovy.syntax.lexer.AbstractCharStream
 
Fields inherited from interface org.codehaus.groovy.syntax.lexer.CharStream
EOS
 
Constructor Summary
ReaderCharStream(java.io.Reader in)
           
ReaderCharStream(java.io.Reader in, java.lang.String description)
           
 
Method Summary
 void close()
           
 char consume()
          Consume the next character.
 java.io.Reader getReader()
           
 
Methods inherited from class org.codehaus.groovy.syntax.lexer.AbstractCharStream
getDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.Reader in
Constructor Detail

ReaderCharStream

public ReaderCharStream(java.io.Reader in)

ReaderCharStream

public ReaderCharStream(java.io.Reader in,
                        java.lang.String description)
Method Detail

getReader

public java.io.Reader getReader()

consume

public char consume()
             throws ReadException
Description copied from interface: CharStream
Consume the next character.

Returns:
The consumed character or -1 if no more characters available.
Throws:
ReadException - If an error occurs attempting to consume a character.

close

public void close()
           throws ReadException
Throws:
ReadException


Copyright © 2003-2005 The Codehaus. All Rights Reserved.