java.lang.Object com.realtime.crossfire.jxclient.skin.source.AbstractJXCSkinSource com.realtime.crossfire.jxclient.skin.source.JXCSkinDirSource
public class JXCSkinDirSource
A JXCSkinSource
that loads from files.
Field Summary | |
---|---|
private java.io.File |
dir
The base directory. |
Constructor Summary | |
---|---|
JXCSkinDirSource(java.io.File dir)
Create a new instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.realtime.crossfire.jxclient.skin.source.AbstractJXCSkinSource |
---|
checkAccess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final java.io.File dir
Constructor Detail |
---|
public JXCSkinDirSource(@NotNull java.io.File dir) throws JXCSkinException
dir
- The base directory.
JXCSkinException
- if the skin cannot be loadedMethod Detail |
---|
@NotNull public java.io.InputStream getInputStream(@NotNull java.lang.String name) throws java.io.IOException
InputStream
for a resource name.
name
- the resource name
java.io.IOException
- if the resource cannot be loaded@NotNull public java.lang.String getURI(@NotNull java.lang.String name)
name
- the resource name