org.codehaus.groovy.syntax.lexer
Class ReaderCharStream
java.lang.Object
org.codehaus.groovy.syntax.lexer.AbstractCharStream
org.codehaus.groovy.syntax.lexer.ReaderCharStream
- All Implemented Interfaces:
- CharStream
- public class ReaderCharStream
- extends AbstractCharStream
Fields inherited from interface org.codehaus.groovy.syntax.lexer.CharStream |
EOS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderCharStream
public ReaderCharStream(Reader in)
ReaderCharStream
public ReaderCharStream(Reader in,
String description)
getReader
public 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-2004 The Codehaus. All Rights Reserved.