org.metadiff.util
Class LoaderUtil

java.lang.Object
  extended byorg.metadiff.util.LoaderUtil

public class LoaderUtil
extends java.lang.Object

Helper class to load resources from classpath

Author:
Mark Kofman

Constructor Summary
LoaderUtil()
           
 
Method Summary
static java.lang.String getFileFullPath(java.lang.String name)
          Return full path of the resource with passed name, if resource was found.
static java.net.URL getFileURL(java.lang.String name)
          Return URL object that represents resource full path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoaderUtil

public LoaderUtil()
Method Detail

getFileFullPath

public static java.lang.String getFileFullPath(java.lang.String name)
Return full path of the resource with passed name, if resource was found. Otherwise - null. Search is performed in application class path and if there has found nothing, when JVM`s class path will be checked.


getFileURL

public static java.net.URL getFileURL(java.lang.String name)
Return URL object that represents resource full path. Null will be returned if there is no resource with passed name exists neither in application class path nor in JVM`s class path.