|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
URL
,
URLStreamHandler
Constructor Summary | |
MediaLocator(java.lang.String locatorString)
|
|
MediaLocator(java.net.URL url)
|
Method Summary | |
java.lang.String |
getProtocol()
Get the beginning of the locator string up to but not including the first colon. |
java.lang.String |
getRemainder()
Get the MediaLocator string with the protocol removed. |
java.net.URL |
getURL()
Get the URL associated with this MediaLocator . |
java.lang.String |
toExternalForm()
Create a string from the URL argument that can
be used to construct the MediaLocator . |
java.lang.String |
toString()
Used for printing MediaLocators . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MediaLocator(java.net.URL url)
url
- The URL
to construct this media locator from.public MediaLocator(java.lang.String locatorString)
Method Detail |
public java.net.URL getURL() throws java.net.MalformedURLException
URL
associated with this MediaLocator
.
java.net.MalformedURLException
public java.lang.String getProtocol()
MediaLocator
.public java.lang.String getRemainder()
MediaLocator
string with the protocol removed.
public java.lang.String toString()
MediaLocators
.
MediaLocators
.public java.lang.String toExternalForm()
URL
argument that can
be used to construct the MediaLocator
.
MediaLocator
.
|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |