|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davic.net.Locator
org.ocap.net.URLLocator
public class URLLocator
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.
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.tv.locator.Locator |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public URLLocator(String url)
throws InvalidLocatorException
URLLocator encapsulating the given URL.
The accepted syntax SHALL be identical to that accepted by URL.URL(String).
url - a URL string
InvalidLocatorException - if URL(String) would throw MalformedURLExceptionpublic URLLocator(URL url)
URLLocator encapsulating the given URL.
This SHALL be equivalent to new URLLocator(url.toString()).
url - the URL expressed as an instance of URLURLLocator(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||