|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.internal.adaptor.URLConverterImpl
public class URLConverterImpl
The service implementation that allows bundleresource or bundleentry URLs to be converted to native file URLs on the local file system.
Internal class.
| Constructor Summary | |
|---|---|
URLConverterImpl()
|
|
| Method Summary | |
|---|---|
URL |
resolve(URL url)
Converts a URL that uses a client-defined protocol into a URL that uses a protocol which is native to the Java class library (file, jar, http, etc). |
URL |
toFileURL(URL url)
Converts a URL that uses a user-defined protocol into a URL that uses the file protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLConverterImpl()
| Method Detail |
|---|
public URL toFileURL(URL url)
throws IOException
URLConverterIf the protocol for the given URL is not recognized by this converter, the original URL is returned as-is.
toFileURL in interface URLConverterurl - the original URL
IOException - if an error occurs during the conversion
public URL resolve(URL url)
throws IOException
URLConverterNote however that users of this API should not assume too much about the results of this method. While it may consistently return a file: URL in certain installation configurations, others may result in jar: or http: URLs.
If the protocol is not recognized by this converter, then the original URL is returned as-is.
resolve in interface URLConverterurl - the original URL
IOException - if unable to resolve URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||