All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ocap.net.URLLocator.html Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version






URLLocator














org.ocap.net
Class URLLocator

java.lang.Object
  extended by org.davic.net.Locator
      extended by org.ocap.net.URLLocator
All Implemented Interfaces:
javax.tv.locator.Locator

public class URLLocator
extends Locator

A concrete implementation of Locator that encapsulates a URL into an object.

Instances of this class MAY be used to reference any resource that is referencable using an instance of URL.

See Also:
URL

Constructor Summary
URLLocator(java.lang.String url)
          Construct an URLLocator encapsulating the given URL.
URLLocator(java.net.URL url)
          Construct an URLLocator encapsulating the given URL.
 
Method Summary
 
Methods inherited from class org.davic.net.Locator
hasMultipleTransformations, toExternalForm, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.tv.locator.Locator
equals, hashCode
 

Constructor Detail

URLLocator

public URLLocator(java.lang.String url)
           throws InvalidLocatorException
Construct an URLLocator encapsulating the given URL.

The accepted syntax SHALL be identical to that accepted by URL.URL(String).

Parameters:
url - a URL string
Throws:
InvalidLocatorException - if URL(String) would throw MalformedURLException

URLLocator

public URLLocator(java.net.URL url)
Construct an URLLocator encapsulating the given URL.

This SHALL be equivalent to new URLLocator(url.toString()).

Parameters:
url - the URL expressed as an instance of URL
See Also:
URLLocator(String)






© 2015 - 2024 Weber Informatics LLC | Privacy Policy