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
MalformedURLException
public static URL buildJarUrl(File jarFile, String entryPath) throws MalformedURLException
MalformedURLException
public static URL buildJarUrl(String fileUrlString) throws MalformedURLException
MalformedURLException
public static URL buildJarUrl(String fileUrlString, String entryPath) throws MalformedURLException
MalformedURLException
public static URL buildJarSafeUrl(File file) throws MalformedURLException
MalformedURLException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.