Package weka.gui
Class Loader
- java.lang.Object
-
- weka.gui.Loader
-
public class Loader extends Object
This class is for loading resources from a JAR archive.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDir()returns the dir prefixInputStreamgetInputStream(String filename)returns an InputStream for the given filename, can be NULL if it failsstatic InputStreamgetInputStream(String dir, String filename)returns an InputStream for the given dir and filename, can be NULL if it failsReadergetReader(String filename)returns a Reader for the given filename, can be NULL if it failsstatic ReadergetReader(String dir, String filename)returns a Reader for the given filename and dir, can be NULL if it failsURLgetURL(String filename)returns a URL for the given filename, can be NULL if it failsstatic URLgetURL(String dir, String filename)returns a URL for the given filename, can be NULL if it failsStringprocessFilename(String filename)returns the processed filename, i.e.
-
-
-
Constructor Detail
-
Loader
public Loader(String dir)
initializes the object
-
-
Method Detail
-
getDir
public String getDir()
returns the dir prefix
-
processFilename
public String processFilename(String filename)
returns the processed filename, i.e. with the dir-prefix if it's missing
-
getURL
public static URL getURL(String dir, String filename)
returns a URL for the given filename, can be NULL if it fails
-
getURL
public URL getURL(String filename)
returns a URL for the given filename, can be NULL if it fails
-
getInputStream
public static InputStream getInputStream(String dir, String filename)
returns an InputStream for the given dir and filename, can be NULL if it fails
-
getInputStream
public InputStream getInputStream(String filename)
returns an InputStream for the given filename, can be NULL if it fails
-
getReader
public static Reader getReader(String dir, String filename)
returns a Reader for the given filename and dir, can be NULL if it fails
-
-