marytts.tools.install
Class LicenseRegistry

java.lang.Object
  extended by marytts.tools.install.LicenseRegistry

public class LicenseRegistry
extends java.lang.Object

A central book-keeping place for the licenses referenced by installable components. Licenses are identified by their URL and kept in local files if they have been "used" before. A license gets "used" in particular when the user attempts to download a component goverened by that license.

Author:
marc

Constructor Summary
LicenseRegistry()
           
 
Method Summary
static java.net.URL getLicense(java.net.URL licenseURL)
          For the license identified by the given URL, return the URL of a local file providing the same content as the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseRegistry

public LicenseRegistry()
Method Detail

getLicense

public static java.net.URL getLicense(java.net.URL licenseURL)
For the license identified by the given URL, return the URL of a local file providing the same content as the given URL. If the license has not been downloaded yet, it will be now.

Parameters:
licenseURL - the remote URL of the license, serving as the license's identifier.
Returns:
the URL of a local file from which the license text can be read even if there is no internet connection.