Class ResourceFinder
java.lang.Object
org.sqlite.util.ResourceFinder
Resource address finder for files inside the jar file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic URLGets theURLof the file resourcestatic URLfind(ClassLoader classLoader, Package basePackage, String resourceFileName) Finds theURLof the resourcestatic URLfind(ClassLoader classLoader, String packageName, String resourceFileName) Finds theURLof the resourceprivate static StringpackagePath(Class<?> referenceClass) private static StringpackagePath(Package basePackage) private static StringpackagePath(String packageName)
-
Constructor Details
-
ResourceFinder
public ResourceFinder()
-
-
Method Details
-
find
Gets theURLof the file resource- Parameters:
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- Returns:
- the URL of the file resource
-
find
Finds theURLof the resource- Parameters:
basePackage- the base package to find the resourceresourceFileName- the resource file name relative to the package folder- Returns:
- the URL of the specified resource
-
find
Finds theURLof the resource- Parameters:
packageName- the base package name to find the resourceresourceFileName- the resource file name relative to the package folder- Returns:
- the URL of the specified resource
-
packagePath
-
packagePath
-
packagePath
-