URLReaderSource (Groovy 5.0.7)

Package: org.codehaus.groovy.control.io

## [Java] Class URLReaderSource

- org.codehaus.groovy.control.io.URLReaderSource

-     public class URLReaderSource
      extends AbstractReaderSource

  A ReaderSource for source files hosted at a URL.

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class AbstractReaderSource` | `configuration`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `URLReaderSource(URL url, CompilerConfiguration configuration)` Creates the ReaderSource from a File descriptor.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Reader` | `getReader()` Returns a new Reader on the underlying source object.
    `` | `public URI` | `getURI()` Returns a URI for the URL of this source.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractReaderSource` | `canReopenSource, cleanup, getLine`

- - ### 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

    - #### @Override
      public Reader getReader()

      Returns a new Reader on the underlying source object.

    - #### @Override
      public URI getURI()

      Returns a URI for the URL of this source.

      Returns:
        URI for the URL of this source.