org.ocap.net.URLLocator.html Maven / Gradle / Ivy
URLLocator
Overview
Package
Class
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:
- 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
- ifURL(String)
would throwMalformedURLException
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 ofURL
- See Also:
URLLocator(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |