Top Description Fields Constructors Methods
org.codehaus.groovy.control.io

public Class URLReaderSource

extends AbstractReaderSource
Class Inheritance
Imports
groovy.lang.GroovyRuntimeException, org.codehaus.groovy.control.CompilerConfiguration, org.codehaus.groovy.util.URLStreams, java.io.IOException, .InputStreamReader, .Reader, java.net.URI, .URISyntaxException, .URL

A ReaderSource for source files hosted at a URL.

Field Summary

Modifier and TypeField and Description
private final URL
Inherited from org.codehaus.groovy.control.io.AbstractReaderSource:
configuration

Constructor Summary

AccessConstructor and Description
public
URLReaderSource(URL
url pointing to script source
url
,
CompilerConfiguration
configuration for compiling source
configuration
)

Creates the ReaderSource from a File descriptor.

Method Summary

Modifier and TypeMethod and Description
public Reader
getReader()

Implements org.codehaus.groovy.control.io.ReaderSource.getReader.

Returns a new Reader on the underlying source object.
public URI

Returns:

URI for the URL of this source.
getURI
()

Implements org.codehaus.groovy.control.io.ReaderSource.getURI.

Returns a URI for the URL of this source.
Inherited from org.codehaus.groovy.control.io.AbstractReaderSource:
canReopenSourcecleanupgetLine

Field Detail

urlback to summary
private final URL url

Constructor Detail

URLReaderSourceback to summary
public URLReaderSource(URL url, CompilerConfiguration configuration)

Creates the ReaderSource from a File descriptor.

Parameters
url:URL

url pointing to script source

configuration:CompilerConfiguration

configuration for compiling source

Method Detail

getReaderback to summary
public Reader getReader() throws IOException

Implements org.codehaus.groovy.control.io.ReaderSource.getReader.

Returns a new Reader on the underlying source object.

Returns:Reader

Doc from org.codehaus.groovy.control.io.ReaderSource.getReader.

the reader to the resource

Exceptions
IOException:

Doc from org.codehaus.groovy.control.io.ReaderSource.getReader.

if there was an error opening for stream

getURIback to summary
public URI getURI()

Implements org.codehaus.groovy.control.io.ReaderSource.getURI.

Returns a URI for the URL of this source.

Returns:URI

URI for the URL of this source.