|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.util.url.URLUtils
public final class URLUtils
This class is used to :
| Field Summary | |
|---|---|
static java.lang.String |
FILE_PROTOCOL
File protocol. |
| Method Summary | |
|---|---|
static java.net.URL |
fileToURL(java.io.File file)
Gets an URL from a given file.(throws only runtime exception). |
static java.net.URL |
fileToURL2(java.io.File file)
Gets an URL from a given file. |
static java.lang.String |
shorterName(java.net.URL url)
For a given URL, make a shorter name. |
static java.io.File |
urlToFile(java.net.URL url)
Gets a File object for the given URL. |
static java.io.File |
urlToFile2(java.net.URL url)
Gets a File object for the given URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_PROTOCOL
| Method Detail |
|---|
public static java.net.URL fileToURL(java.io.File file)
file - the given file
public static java.net.URL fileToURL2(java.io.File file)
throws URLUtilsException
file - the given file
URLUtilsException - if the URL cannot be get from file.public static java.io.File urlToFile(java.net.URL url)
url - the given url.
public static java.io.File urlToFile2(java.net.URL url)
throws URLUtilsException
url - the given url.
URLUtilsException - if File cannot be get from URLpublic static java.lang.String shorterName(java.net.URL url)
url - the given URL
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||