|
|||||||||
| 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 String |
FILE_PROTOCOL
File protocol. |
| Method Summary | |
|---|---|
static URL |
fileToURL(File file)
Gets an URL from a given file.(throws only runtime exception). |
static URL |
fileToURL2(File file)
Gets an URL from a given file. |
static String |
shorterName(URL url)
For a given URL, make a shorter name. |
static File |
urlToFile(URL url)
Gets a File object for the given URL. |
static File |
urlToFile2(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 String FILE_PROTOCOL
| Method Detail |
|---|
public static URL fileToURL(File file)
file - the given file
public static URL fileToURL2(File file)
throws URLUtilsException
file - the given file
URLUtilsException - if the URL cannot be get from file.public static File urlToFile(URL url)
url - the given url.
public static File urlToFile2(URL url)
throws URLUtilsException
url - the given url.
URLUtilsException - if File cannot be get from URLpublic static String shorterName(URL url)
url - the given URL
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||