URLLocator

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ocap.net
Class URLLocator

    java.lang.Object
      org.davic.net.Locator
          org.ocap.net.URLLocator

All Implemented Interfaces:
  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 referenceable using an instance of `URL`.

Author:
  Aaron Kamienski
See Also:
  `URL`

Constructor Summary
`URLLocator(String url)` Construct an `URLLocator` encapsulating the given URL.
`URLLocator(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
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface javax.tv.locator.Locator
`equals, hashCode`

Constructor Detail

### URLLocator

    public URLLocator(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(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)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD