public final class UriUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static URL |
buildJarSafeUrl(File file) |
static URL |
buildJarUrl(File jarFile) |
static URL |
buildJarUrl(File jarFile,
String entryPath) |
static URL |
buildJarUrl(String fileUrlString) |
static URL |
buildJarUrl(String fileUrlString,
String entryPath) |
static boolean |
hasScheme(CharSequence uri)
Determine if a URI string has a
scheme component. |
public static boolean hasScheme(CharSequence uri)
scheme component.uri - The URI to testtrue if a scheme is present, otherwise {code @false}public static URL buildJarUrl(File jarFile) throws MalformedURLException
MalformedURLExceptionpublic static URL buildJarUrl(File jarFile, String entryPath) throws MalformedURLException
MalformedURLExceptionpublic static URL buildJarUrl(String fileUrlString) throws MalformedURLException
MalformedURLExceptionpublic static URL buildJarUrl(String fileUrlString, String entryPath) throws MalformedURLException
MalformedURLExceptionpublic static URL buildJarSafeUrl(File file) throws MalformedURLException
MalformedURLExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.