public class Loader
extends java.lang.Object
Constructor and Description |
---|
Loader(java.lang.String dir)
initializes the object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDir()
returns the dir prefix
|
java.io.InputStream |
getInputStream(java.lang.String filename)
returns an InputStream for the given filename, can be NULL if it fails
|
static java.io.InputStream |
getInputStream(java.lang.String dir,
java.lang.String filename)
returns an InputStream for the given dir and filename, can be NULL if it
fails
|
java.io.Reader |
getReader(java.lang.String filename)
returns a Reader for the given filename, can be NULL if it fails
|
static java.io.Reader |
getReader(java.lang.String dir,
java.lang.String filename)
returns a Reader for the given filename and dir, can be NULL if it fails
|
java.net.URL |
getURL(java.lang.String filename)
returns a URL for the given filename, can be NULL if it fails
|
static java.net.URL |
getURL(java.lang.String dir,
java.lang.String filename)
returns a URL for the given filename, can be NULL if it fails
|
java.lang.String |
processFilename(java.lang.String filename)
returns the processed filename, i.e.
|
public java.lang.String getDir()
public java.lang.String processFilename(java.lang.String filename)
public static java.net.URL getURL(java.lang.String dir, java.lang.String filename)
public java.net.URL getURL(java.lang.String filename)
public static java.io.InputStream getInputStream(java.lang.String dir, java.lang.String filename)
public java.io.InputStream getInputStream(java.lang.String filename)
public static java.io.Reader getReader(java.lang.String dir, java.lang.String filename)
public java.io.Reader getReader(java.lang.String filename)