public class JarURLHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE
URL Protocol : File.
|
static String |
HTTP
URL Protocol : HTTP.
|
static String |
JAR
URL Protocol : jar.
|
static String |
JAR_SEPARATOR
Jar Separator.
|
| Constructor and Description |
|---|
JarURLHelper() |
| Modifier and Type | Method and Description |
|---|---|
static URL |
convertToJarURL(URL fileURL,
StringTranslator translator)
Convert the URL to a JAR URL, for example if the File URL is
file://deploy/SA.zip it will be converted to jar:file://deploy/SA.zip!
|
static ZipFile |
getZipFileFromURL(URL fileURL,
StringTranslator translator)
Get the ZipFile from the fileURL.
|
public static final String FILE
public static final String HTTP
public static final String JAR
public static final String JAR_SEPARATOR
public static ZipFile getZipFileFromURL(URL fileURL, StringTranslator translator) throws IOException
fileURL - is the File URL.translator - is the StringTranslator.IOException - on IO related errors.public static URL convertToJarURL(URL fileURL, StringTranslator translator) throws IOException
fileURL - is the original JarFile URL.translator - is the StringTranslatorIOException - if the URL cannot be converted to a JAR URLCopyright © 2011-2016 OpenESB Community. All Rights Reserved.