HasCleanup, ReaderSourcepublic class StringReaderSource extends AbstractReaderSource
configuration| Constructor | Description |
|---|---|
StringReaderSource(java.lang.String string,
CompilerConfiguration configuration) |
Creates the ReaderSource from a File descriptor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.io.Reader |
getReader() |
Returns a new Reader on the underlying source object.
|
java.net.URI |
getURI() |
Returns a Data URI (RFC 2397) containing the literal value of this source string.
|
canReopenSource, cleanup, getLinepublic StringReaderSource(java.lang.String string,
CompilerConfiguration configuration)
string - string containing script sourceconfiguration - configuration for compiling sourcepublic java.io.Reader getReader()
throws java.io.IOException
java.io.IOException - if there was an error opening for streampublic java.net.URI getURI()