org.fosstrak.hal.util
Class ResourceLocator

java.lang.Object
  extended by org.fosstrak.hal.util.ResourceLocator

public final class ResourceLocator
extends java.lang.Object

Author:
hallerj

Constructor Summary
ResourceLocator()
           
 
Method Summary
static java.net.URL getURL(java.lang.String resourceFileName, java.lang.String defaultResourceFileName, java.lang.Class caller)
          Get the URL of the resourceFileName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLocator

public ResourceLocator()
Method Detail

getURL

public static java.net.URL getURL(java.lang.String resourceFileName,
                                  java.lang.String defaultResourceFileName,
                                  java.lang.Class caller)
Get the URL of the resourceFileName.

Parameters:
resourceFileName - path and name of the resource file (e.g. '/path/file.ext')
defaultResourceFileName - path and name of the default resource file (e.g. '/path/file_default.ext')
caller - the caller class
Returns:
URL of the file or null if not found


Copyright © 2008. All Rights Reserved.