|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectjavax.media.MediaLocator
public class 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,
序列化表格| 构造方法摘要 | |
|---|---|
MediaLocator(java.lang.String locatorString)
|
|
MediaLocator(java.net.URL url)
|
|
| 方法摘要 | |
|---|---|
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. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public MediaLocator(java.net.URL url)
url - The URL to construct this media locator from.public MediaLocator(java.lang.String locatorString)
| 方法详细信息 |
|---|
public java.net.URL getURL()
throws java.net.MalformedURLException
URL associated with this MediaLocator.
java.net.MalformedURLExceptionpublic java.lang.String getProtocol()
MediaLocator.public java.lang.String getRemainder()
MediaLocator string with the protocol removed.
public java.lang.String toString()
MediaLocators.
java.lang.Object 中的 toStringMediaLocators.public java.lang.String toExternalForm()
URL argument that can
be used to construct the MediaLocator.
MediaLocator.
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||