Package weka.gui
Class Loader
java.lang.Object
weka.gui.Loader
This class is for loading resources from a JAR archive.
- Version:
- $Revision: 8034 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDir()
returns the dir prefixgetInputStream
(String filename) returns an InputStream for the given filename, can be NULL if it failsstatic InputStream
getInputStream
(String dir, String filename) returns an InputStream for the given dir and filename, can be NULL if it failsreturns a Reader for the given filename, can be NULL if it failsstatic Reader
returns a Reader for the given filename and dir, can be NULL if it failsreturns a URL for the given filename, can be NULL if it failsstatic URL
returns a URL for the given filename, can be NULL if it failsprocessFilename
(String filename) returns the processed filename, i.e.
-
Constructor Details
-
Loader
initializes the object
-
-
Method Details
-
getDir
returns the dir prefix -
processFilename
returns the processed filename, i.e. with the dir-prefix if it's missing -
getURL
returns a URL for the given filename, can be NULL if it fails -
getURL
returns a URL for the given filename, can be NULL if it fails -
getInputStream
returns an InputStream for the given dir and filename, can be NULL if it fails -
getInputStream
returns an InputStream for the given filename, can be NULL if it fails -
getReader
returns a Reader for the given filename and dir, can be NULL if it fails -
getReader
returns a Reader for the given filename, can be NULL if it fails
-