You are currently viewing a snapshot of taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to, please file a bug.

All Packages  This Package  Class Hierarchy  Class Search  Index

Class calypso.util.ConfigUtils


public class  ConfigUtils
     extends java.lang.Object
          // Fields 2
     private static String gFileSeparator;
     private static String gUserDir;

          // Constructors 1
     public ConfigUtils();

          // Methods 1
     public static final Enumeration fileSearchURLs(String, Class);



   private static String gFileSeparator


   private static String gUserDir



   public ConfigUtils() 

Default constructor



   public static final Enumeration fileSearchURLs(String aLocation, 
                                                  Class aBaseClass) 

This is the standardized place for getting a list of URLs which you should search, in order, when trying to locate a resource which may be overridden by external files. This is used, at time of writing, by the Configuration system, which looks for things within packages, but first looks for external files which will effectively replace the package resources. aBaseClass is necessary if aLocation refers to a resource (which it normally will). In this case, we will need a class loader. supplied by aBaseClass.

Parameter Description
aLocation The resource path for locating the resource in its default location, a package. Use a full name, like "/netscape/shell/imp/ShellConfig.xml". Use a slash for the path separator character.
aBaseClass A base class using the same classloader as aLocation. That is, a class from the same .jar file. Can be null if aLocation is a simple local system file.

an enumeration of URLs to try, in order

All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4