This class is an implementation of a ResourceLoader. It insulates the
application code from having any need to know about the local file system
directory structure. It is also useful for debugging and development so we
can redirect resource request to debug files if needed.
author: Jeff Tassin
Creates a resource(file) relative to the application directory e.g.
createResource( "keybindings/emacs.xml" ); will create the file emacs.xml
in the keybindings directory off of the main subdirectory
Parameters: resourceName - a path and file name of the file to create.
Creates a set of subdirectories under the main resources directory. e.g.
createDirectories( "data/application" ); This will create the directory
structure: TS_HOME/resources/data/application
Opens and returns an input stream for the given resourceName. The
resourceName is relative to the application home directory.
Parameters: resourceName - the relative name of the resource to open an input stream for the given resourceName.
Opens and returns an output stream for the given resourceName. The
resourceName is relative to the application home directory.
Parameters: resourceName - the relative name of the resource to open an input stream for the given resourceName.
Opens and returns an input stream for the given resourceName. The
resourceName is relative to the application CLASSPATH (i.e. JAR file).
Parameters: resourceName - the relative name of the resource to open an input stream for the given resourceName.
Lists all files that are found in the given subdirectory. The
subdirectory is relative to the main application directory.
Parameters: subdirectory - the subdirectory whose file names we are going to return. Onlythe name of the file is returned (no path information) Parameters: regexFilter - this is a regular expression filter that you can use to locatethe files