22 package com.realtime.crossfire.jxclient.skin.source;
26 import java.io.FileInputStream;
27 import java.io.IOException;
28 import java.io.InputStream;
29 import org.jetbrains.annotations.NotNull;
41 private final File
dir;
58 public InputStream
getInputStream(@NotNull
final String name)
throws IOException {
59 return new FileInputStream(
new File(dir, name));
67 public String
getURI(@NotNull
final String name) {
68 return "file:"+
new File(dir, name);
InputStream getInputStream(@NotNull final String name)
Returns an InputStream for a resource name.the resource name the input stream for the resource if the...
Abstract base class for JXCSkinSource implementations.
A JXCSkinSource that loads from files.
JXCSkinDirSource(@NotNull final File dir)
Creates a new instance.
void checkAccess()
Checks that the skin exists and can be accessed.
String getURI(@NotNull final String name)
Returns a description of the location of a resource name.the resource name the description of the res...
Exception thrown if a skin related problem occurs.
final File dir
The base directory.