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