[Java] Class URLReaderSource
- org.codehaus.groovy.control.io.URLReaderSource
A ReaderSource for source files hosted at a URL.
- Authors:
- Chris Poirier
Fields inherited from class | Fields |
---|---|
class AbstractReaderSource | configuration |
Constructor Summary
Constructor and description |
---|
URLReaderSource
(URL url, CompilerConfiguration configuration) Creates the ReaderSource from a File descriptor. |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
Reader |
getReader() Returns a new Reader on the underlying source object. | |
URI |
getURI() Returns a URI for the URL of this source. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class AbstractReaderSource | canReopenSource, cleanup, getLine |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public URLReaderSource(URL url, CompilerConfiguration configuration)
Creates the ReaderSource from a File descriptor.
- Parameters:
-
url
- url pointing to script source -
configuration
- configuration for compiling source
Method Detail
public Reader getReader()
Returns a new Reader on the underlying source object.
public URI getURI()
Returns a URI for the URL of this source.
- Returns:
- URI for the URL of this source.
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/control/io/URLReaderSource.html