public class JXCSkinDirSource extends AbstractJXCSkinSource
JXCSkinSource
that loads from files.Modifier and Type | Field and Description |
---|---|
private java.io.File |
dir
The base directory.
|
Constructor and Description |
---|
JXCSkinDirSource(java.io.File dir)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
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
public JXCSkinDirSource(@NotNull java.io.File dir) throws JXCSkinException
dir
- the base directoryJXCSkinException
- if the skin cannot be loaded@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