public class JXCSkinDirSource extends AbstractJXCSkinSource
JXCSkinSource
that loads from files.Constructor and Description |
---|
JXCSkinDirSource(@NotNull java.nio.file.Path dir)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.io.InputStream |
getInputStream(@NotNull java.lang.String name)
Returns an
InputStream for a resource name. |
@NotNull java.lang.String |
getURI(@NotNull java.lang.String name)
Returns a description of the location of a resource name.
|
checkAccess
public JXCSkinDirSource(@NotNull @NotNull java.nio.file.Path dir) throws JXCSkinException
dir
- the base directoryJXCSkinException
- if the skin cannot be loaded@NotNull public @NotNull java.io.InputStream getInputStream(@NotNull @NotNull java.lang.String name) throws java.io.IOException
JXCSkinSource
InputStream
for a resource name.name
- the resource namejava.io.IOException
- if the resource cannot be loaded@NotNull public @NotNull java.lang.String getURI(@NotNull @NotNull java.lang.String name)
JXCSkinSource
name
- the resource name