org.codehaus.groovy.control.io
Class FileReaderSource
java.lang.Object
org.codehaus.groovy.control.io.AbstractReaderSource
org.codehaus.groovy.control.io.FileReaderSource
- All Implemented Interfaces:
- HasCleanup, ReaderSource
- public class FileReaderSource
- extends AbstractReaderSource
A ReaderSource for source files.
- Version:
- $Id: FileReaderSource.java,v 1.1 2004/04/19 07:29:44 cpoirier Exp $
- Author:
- Chris Poirier
Field Summary |
private java.io.File |
file
|
Method Summary |
java.io.Reader |
getReader()
Returns a new Reader on the underlying source object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
private java.io.File file
FileReaderSource
public FileReaderSource(java.io.File file,
CompilerConfiguration configuration)
- Creates the ReaderSource from a File descriptor.
FileReaderSource
public FileReaderSource(java.lang.String path,
CompilerConfiguration configuration)
- Creates the ReaderSource from a file path.
getReader
public java.io.Reader getReader()
throws java.io.IOException
- Returns a new Reader on the underlying source object.
- Throws:
java.io.IOException
Copyright © 2003-2005 The Codehaus. All Rights Reserved.