All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----javax.media.MediaLocator
MediaLocator
describes the location of
media content. MediaLocator
is closely
related to URL
. URLs
can be obtained from MediaLocators
, and
MediaLocators
can be constructed from
URL
.
Unlike a URL
, a MediaLocator
can be instanced without a URLStreamHandler
installed on the System.
MediaLocator
string with the protocol removed.
URL
associated with this MediaLocator
.
URL
argument that can
be used to construct the MediaLocator
.
MediaLocators
.
public MediaLocator(URL url)
URL
to construct this media locator from.
public MediaLocator(String locatorString)
public URL getURL() throws MalformedURLException
URL
associated with this MediaLocator
.
public String getProtocol()
MediaLocator
.
public String getRemainder()
MediaLocator
string with the protocol removed.
public String toString()
MediaLocators
.
MediaLocators
.
public String toExternalForm()
URL
argument that can
be used to construct the MediaLocator
.
MediaLocator
.
All Packages Class Hierarchy This Package Previous Next Index