org.codehaus.groovy.syntax.lexer
Interface CharStream

All Known Implementing Classes:
AbstractCharStream, FileCharStream

public interface CharStream

Conduit of characters to a lexer.

Version:
$Id: CharStream.java,v 1.5 2004/02/26 17:46:20 jstrachan Exp $
Author:
bob mcwhirter
See Also:
Lexer, AbstractCharStream

Field Summary
static char EOS
          End-of-stream value.
 
Method Summary
 void close()
           
 char consume()
          Consume the next character.
 String getDescription()
           
 

Field Detail

EOS

public static final char EOS
End-of-stream value.

See Also:
Constant Field Values
Method Detail

getDescription

public String getDescription()

consume

public char consume()
             throws ReadException
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.