it.eng.qbe.utility
Class JarUtils

java.lang.Object
  extended by it.eng.qbe.utility.JarUtils

public class JarUtils
extends java.lang.Object

The Class JarUtils.

Author:
Gioia

Constructor Summary
JarUtils()
           
 
Method Summary
static java.net.URL getResourceFromJarFile(java.io.File jar, java.lang.String resourceName)
          Gets the resource from jar file.
static java.net.URL getUrl(java.io.File jarFile, java.lang.String path)
          Gets the url.
static java.lang.String getUrlStr(java.io.File jarFile, java.lang.String path)
          Gets the url str.
static void main(java.lang.String[] args)
          The main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarUtils

public JarUtils()
Method Detail

getResourceFromJarFile

public static java.net.URL getResourceFromJarFile(java.io.File jar,
                                                  java.lang.String resourceName)
Gets the resource from jar file.

Parameters:
jar - the jar
resourceName - the resource name
Returns:
the resource from jar file

getUrlStr

public static java.lang.String getUrlStr(java.io.File jarFile,
                                         java.lang.String path)
Gets the url str.

Parameters:
jarFile - the jar file
path - the path
Returns:
the url str

getUrl

public static java.net.URL getUrl(java.io.File jarFile,
                                  java.lang.String path)
Gets the url.

Parameters:
jarFile - the jar file
path - the path
Returns:
the url

main

public static void main(java.lang.String[] args)
                 throws java.net.MalformedURLException
The main method.

Parameters:
args - the arguments
Throws:
java.net.MalformedURLException - the malformed url exception