public class JXCSkinClassSource extends AbstractJXCSkinSource
JXCSkinSource
that loads via the class loader.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
baseName
The base resource name to prepend to all resource names.
|
Constructor and Description |
---|
JXCSkinClassSource(java.lang.String baseName)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.ClassLoader |
getClassLoader()
Returns the
ClassLoader to use. |
java.io.InputStream |
getInputStream(java.lang.String name)
Returns an
InputStream for a resource name. |
java.lang.String |
getURI(java.lang.String name)
Returns a description of the location of a resource name.
|
checkAccess
@NotNull private final java.lang.String baseName
public JXCSkinClassSource(@NotNull java.lang.String baseName) throws JXCSkinException
baseName
- the base resource name to prepend to all resource namesJXCSkinException
- if the skin cannot be loaded@NotNull private java.lang.ClassLoader getClassLoader()
ClassLoader
to use.@NotNull public java.io.InputStream getInputStream(@NotNull java.lang.String name) throws java.io.IOException
InputStream
for a resource name.name
- the resource namejava.io.IOException
- if the resource cannot be loaded@NotNull public java.lang.String getURI(@NotNull java.lang.String name)
name
- the resource name