public class FileReaderSource extends AbstractReaderSource
configuration
Constructor and Description |
---|
FileReaderSource(File file,
CompilerConfiguration configuration)
Creates the ReaderSource from a File descriptor.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile() |
Reader |
getReader()
Returns a new Reader on the underlying source object.
|
canReopenSource, cleanup, getLine
public FileReaderSource(File file, CompilerConfiguration configuration)
file
- script source fileconfiguration
- configuration for compiling sourcepublic File getFile()
public Reader getReader() throws IOException
IOException
- if there was an error opening for stream