| Modifier and Type | Field | Description |
|---|---|---|
ClassLoader |
classLoader |
|
Class<?> |
contextCL |
Optional class instance used to
resolve(int) relative resourcePaths. |
String[] |
resourcePaths |
Resource paths, see
resolve(int). |
| Constructor | Description |
|---|---|
ClassResources(Class<?> contextCL,
String[] resourcePaths) |
Deprecated.
Use
#IOUtil(String[], ClassLoader, Class) for clarity! |
ClassResources(String[] resourcePaths,
ClassLoader classLoader,
Class<?> relContext) |
| Modifier and Type | Method | Description |
|---|---|---|
URLConnection |
resolve(int uriIndex) |
Resolving one of the
resourcePaths indexed by uriIndex using
classLoader, contextCL through IOUtil.getResource(String, ClassLoader, Class). |
int |
resourceCount() |
Returns the number of resources, i.e.
|
public final ClassLoader classLoader
public final Class<?> contextCL
resolve(int) relative resourcePaths.public final String[] resourcePaths
resolve(int).public ClassResources(Class<?> contextCL, String[] resourcePaths)
#IOUtil(String[], ClassLoader, Class) for clarity!contextCL - class instance to resolve(int) resourcePaths.resourcePaths - array of strings denominating multiple resource paths. None shall be null.public ClassResources(String[] resourcePaths, ClassLoader classLoader, Class<?> relContext)
resourcePaths - multiple relative or absolute resource locationsclassLoader - optional ClassLoader, see IOUtil.getResource(String, ClassLoader, Class)relContext - optional relative context, see IOUtil.getResource(String, ClassLoader, Class)public final int resourceCount()
resourcePaths.length.public URLConnection resolve(int uriIndex) throws ArrayIndexOutOfBoundsException
resourcePaths indexed by uriIndex using
classLoader, contextCL through IOUtil.getResource(String, ClassLoader, Class).ArrayIndexOutOfBoundsException - if uriIndex is < 0 or >= resourceCount().