|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sqlite.ResourceFinder
public class ResourceFinder
Resource address finder for files inside the jar file
Constructor Summary | |
---|---|
ResourceFinder()
|
Method Summary | |
---|---|
static URL |
find(Class<?> referenceClass,
String resourceFileName)
Gets the URL of the file resource |
static URL |
find(ClassLoader classLoader,
Package basePackage,
String resourceFileName)
Finds the URL of the resource |
static URL |
find(ClassLoader classLoader,
String packageName,
String resourceFileName)
Finds the URL of the resource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceFinder()
Method Detail |
---|
public static URL find(Class<?> referenceClass, String resourceFileName)
URL
of the file resource
referenceClass
- the base class for finding resources files. This method will
search the package containing the given referenceClass.resourceFileName
- the resource file name relative to the package of the
referenceClass
public static URL find(ClassLoader classLoader, Package basePackage, String resourceFileName)
URL
of the resource
basePackage
- the base package to find the resourceresourceFileName
- the resource file name relative to the package folder
public static URL find(ClassLoader classLoader, String packageName, String resourceFileName)
URL
of the resource
packageName
- the base package name to find the resourceresourceFileName
- the resource file name relative to the package folder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |