Class JXCSkinDirSource
- java.lang.Object
-
- com.realtime.crossfire.jxclient.skin.source.AbstractJXCSkinSource
-
- com.realtime.crossfire.jxclient.skin.source.JXCSkinDirSource
-
- All Implemented Interfaces:
JXCSkinSource
public class JXCSkinDirSource extends AbstractJXCSkinSource
AJXCSkinSourcethat loads from files.
-
-
Constructor Summary
Constructors Constructor Description JXCSkinDirSource(@NotNull java.nio.file.Path dir)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.io.InputStreamgetInputStream(@NotNull java.lang.String name)Returns anInputStreamfor a resource name.@NotNull java.lang.StringgetURI(@NotNull java.lang.String name)Returns a description of the location of a resource name.-
Methods inherited from class com.realtime.crossfire.jxclient.skin.source.AbstractJXCSkinSource
checkAccess
-
-
-
-
Constructor Detail
-
JXCSkinDirSource
public JXCSkinDirSource(@NotNull @NotNull java.nio.file.Path dir) throws JXCSkinExceptionCreates a new instance.- Parameters:
dir- the base directory- Throws:
JXCSkinException- if the skin cannot be loaded
-
-
Method Detail
-
getInputStream
@NotNull public @NotNull java.io.InputStream getInputStream(@NotNull @NotNull java.lang.String name) throws java.io.IOExceptionDescription copied from interface:JXCSkinSourceReturns anInputStreamfor a resource name.- Parameters:
name- the resource name- Returns:
- the input stream for the resource
- Throws:
java.io.IOException- if the resource cannot be loaded
-
getURI
@NotNull public @NotNull java.lang.String getURI(@NotNull @NotNull java.lang.String name)Description copied from interface:JXCSkinSourceReturns a description of the location of a resource name.- Parameters:
name- the resource name- Returns:
- the description of the resource
-
-