org.codehaus.groovy.syntax.lexer
Class FileCharStream

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

public class FileCharStream
extends java.lang.Object
implements CharStream


Field Summary
 
Fields inherited from interface org.codehaus.groovy.syntax.lexer.CharStream
EOS
 
Constructor Summary
FileCharStream(java.io.File file)
           
 
Method Summary
 void close()
           
 char consume()
          Consume the next character.
protected  CharStream getCharStream()
           
 java.lang.String getDescription()
           
 java.io.File getFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCharStream

public FileCharStream(java.io.File file)
Method Detail

getFile

public java.io.File getFile()

getCharStream

protected CharStream getCharStream()
                            throws ReadException
Throws:
ReadException

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface CharStream

consume

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

Specified by:
consume in interface CharStream
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
Specified by:
close in interface CharStream
Throws:
ReadException


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