|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.util.url.URLUtils
public final class URLUtils
This class is used to :
Field Summary | |
---|---|
static java.lang.String |
FILE_PROTOCOL
File protocol. |
Constructor Summary | |
---|---|
private |
URLUtils()
Utility class. |
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.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
Constructor Detail |
---|
private URLUtils()
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 URL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |