A class used to manage access to resources. This class wraps access to
resources such as the files, images, readers and application objects such as
Window and Frame references.
File access is provided so that the resource manager can determine the
source of the file by searching the classpath.
getBufferedReader(String file, String encoding) Gets a BufferedReader for a resource
Parameters: file - the resource file name Parameters: encoding - the input encoding e.g.
getBufferedReader(File file, String encoding) Gets a BufferedReader for a resource
Parameters: file - the resource file Parameters: encoding - the input encoding e.g.
setDefaultEncoding(String encoding) Set the default file encoding (UTF8 unless modified)
See Also: http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html Parameters: the - encoding e.g.
Add a custom class loader. Customer class loaders are sometimes added to
help locate resources in file structures, jars, remote locations etc...
Parameters: c - the classloader
Gets a buffered stream for a file
Parameters: file - the file Parameters: useProjectParent - use the projects default file specification to locate the file the output stream
Gets a BufferedReader for a resource
Parameters: file - the resource file name Parameters: encoding - the input encoding e.g. "UTF8" or null for the defaultencoding (UTF8 unless it has been changed) the BufferedReader
Gets a BufferedReader for a resource
Parameters: file - the resource file Parameters: encoding - the input encoding e.g. "UTF8" or null for the defaultencoding (UTF8 unless it has been changed) the BufferedReader
Loads an image resource in a background thread
Parameters: holder - the component containing to display the image Parameters: name - the image resource name the image
Gets a stream for a file
Parameters: file - the file Parameters: useProjectParent - use the projects default file specification to locate the file the output stream
public static void setDefaultEncoding(String encoding)(Code)
Set the default file encoding (UTF8 unless modified)
See Also: http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html Parameters: the - encoding e.g. "UTF8" or "ISO-8859-1"
Set the default file/directory specification used to locate files by the
getOutputStream( String file, boolean useProjectParent ) method
Parameters: file - the file or directory specification