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