URLTemplateSource (FreeMarker 2.3.35 API)
Description: declaration: package: freemarker.cache, class: URLTemplateSource

Package freemarker.cache

# Class URLTemplateSource

java.lang.Object
freemarker.cache.URLTemplateSource

public class URLTemplateSource extends Object
Wraps a `URL`, and implements methods required for a typical template source.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `URLTemplateSource​(URL url, Boolean useCaches)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `boolean`
  `equals​(Object o)`
  `InputStream`
  `getInputStream()`
  `int`
  `hashCode()`
  `long`
  `lastModified()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### URLTemplateSource

    public URLTemplateSource​(URL url, Boolean useCaches) throws IOException
    Parameters:
      `useCaches` - `null` if this aspect wasn't set in the parent `TemplateLoader`.
    Throws:
      `IOException`

- ## Method Details

  - ### equals

    public boolean equals​(Object o)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### lastModified

    public long lastModified()

  - ### getInputStream

    public InputStream getInputStream() throws IOException
    Throws:
      `IOException`

  - ### close

    public void close() throws IOException
    Throws:
      `IOException`