java.lang.Object com.realtime.crossfire.jxclient.skin.source.AbstractJXCSkinSource com.realtime.crossfire.jxclient.skin.source.JXCSkinClassSource
public class JXCSkinClassSource
A JXCSkinSource
that loads via the class loader.
Field Summary | |
---|---|
private java.lang.String |
baseName
The base resource name to prepend to all resource names. |
Constructor Summary | |
---|---|
JXCSkinClassSource(java.lang.String baseName)
Create a new instance. |
Method Summary | |
---|---|
private java.lang.ClassLoader |
getClassLoader()
Return 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. |
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.lang.String baseName
Constructor Detail |
---|
public JXCSkinClassSource(@NotNull java.lang.String baseName) throws JXCSkinException
baseName
- The base resource name to prepend to all resource names.
JXCSkinException
- if the skin cannot be loadedMethod Detail |
---|
@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 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